type NotifyHandler = (payload: string) => void;
export interface PostgresListenerOptions {
    databaseUrl: string;
    channel: string;
    onNotify: NotifyHandler;
    onReconnect?: () => void;
}
export declare class PostgresListener {
    private readonly opts;
    private client;
    private stopped;
    private reconnectDelayMs;
    private readonly maxReconnectDelayMs;
    private connected;
    constructor(opts: PostgresListenerOptions);
    isConnected(): boolean;
    start(): Promise<void>;
    stop(): Promise<void>;
    private connectLoop;
    private connectAndListen;
    private scheduleReconnect;
}
export {};
//# sourceMappingURL=postgres-listener.d.ts.map