import { Reader, Writer, Cache, type LogiverseConfig } from '../index.js' interface Props { interval: number cache: Cache.LogCache network: LogiverseConfig } export class Client { #reader: Reader #writer: Writer | undefined #cache: Props['cache'] #network: Props['network'] constructor({ interval, cache, network }: Props) { this.#cache = cache this.#network = network this.#reader = new Reader({ interval, cache: this.#cache, network: this.#network }) } async connect(): Promise { this.#reader.read() await this.#reader.invalidate() } }