import { Pool } from 'pg'; import { AuthenticationCreds } from '@whiskeysockets/baileys'; interface PostgreSQLConfig { host: string; port: number; user: string; password: string; database: string; ssl?: boolean | any; } interface State { creds: AuthenticationCreds; keys: { get: (type: string, ids: string[]) => Promise>; set: (data: Record>) => Promise; }; } declare const initAuthCreds: () => AuthenticationCreds; declare function usePostgreSQLAuthState(poolOrConfig: Pool | PostgreSQLConfig, sessionId: string): Promise<{ state: State; saveCreds: () => Promise; deleteSession: () => Promise; }>; export { usePostgreSQLAuthState, initAuthCreds };