import type { DB } from "./Prostgles"; import type pg from "pg-promise/typescript/pg-subset"; import type pgPromise from "pg-promise"; export type PrglNotifListener = (args: { length: number; processId: number; channel: string; payload: string; name: string; }) => void; export declare class PostgresNotifListenManager { connection?: pgPromise.IConnected<{}, pg.IClient>; db_pg: DB; notifListener: PrglNotifListener; db_channel_name: string; isListening: any; client?: pg.IClient; static create: (db_pg: DB, notifListener: PrglNotifListener, db_channel_name: string) => Promise; constructor(db_pg: DB, notifListener: PrglNotifListener, db_channel_name: string, noInit?: boolean); init(): Promise; get isReady(): any; startListening(): Promise; destroyed: boolean; destroy: () => Promise; stopListening: () => Promise; reconnect(delay?: number | undefined, maxAttempts?: number | undefined): Promise; } //# sourceMappingURL=PostgresNotifListenManager.d.ts.map