import type { ConnectionType } from "../connection-pool"; import type { ReqFilter, TaggedNostrEvent } from "../nostr"; import { EventEmitter } from "eventemitter3"; export interface NegentropyFlowEvents { /** * When sync is finished emit a set of filters which can resolve sync */ finish: (req: Array) => void; /** * If an error is detected and Negentropy flow is not supported */ error: () => void; } /** * Negentropy sync flow on connection */ export declare class NegentropyFlow extends EventEmitter { #private; readonly idSize: number; constructor(id: string, conn: ConnectionType, set: Array, filters: Array); /** * Start sync */ start(): void; } //# sourceMappingURL=negentropy-flow.d.ts.map