import type { LogContext } from '@rocicorp/logger';
import { type PostgresDB } from '../../../../types/pg.ts';
import { type Sink, type Source } from '../../../../types/streams.ts';
import type { Message } from './pgoutput.types.ts';
export type StreamMessage = [lsn: bigint, Message | {
    tag: 'keepalive';
}];
export declare function subscribe(lc: LogContext, db: PostgresDB, slot: string, publications: string[], lsn: bigint, retriesIfReplicationSlotActive?: number, applicationName?: string): Promise<{
    messages: Source<StreamMessage>;
    acks: Sink<bigint>;
}>;
//# sourceMappingURL=stream.d.ts.map