import type { CanonicalRecord } from "@saga-sync/core"; import type { Hex } from "@saga-sync/core"; import type { Store } from "@saga-sync/core"; import type { ChunkMeta } from "@saga-sync/core"; import { Manifest } from "@saga-sync/core"; import type { ChunkExpectations } from "./verify.js"; export type ClientOptions = { source: Store; cache?: Store; concurrency?: number; publicKey?: string | string[]; }; export type StreamOptions = { fromBlock?: bigint; toBlock?: bigint; addresses?: Hex[]; eventTopics?: Hex[]; }; export type ProtocolSelector = { address: Hex; chainId?: Hex; }; export type StreamTarget = string | ProtocolSelector; export declare class Client { private readonly source; private readonly cache; private readonly concurrency; private readonly publicKey; constructor(opts: ClientOptions); fetchManifest(key?: string): Promise; fetchChunk(meta: ChunkMeta, opts?: { hot?: boolean; expect?: ChunkExpectations; }): Promise; listProtocols(prefix?: string): Promise; resolveProtocolId(selector: ProtocolSelector): Promise; streamEvents(target: StreamTarget, opts?: StreamOptions): AsyncGenerator; private fetchSealed; private fetchSealedOrdered; } //# sourceMappingURL=client.d.ts.map