import { Client as PgClient } from "pg"; import { default as PgPool } from "pg-pool"; import type { CustomSession, ISessionStoreAdapter, Session } from "../types"; interface PostgresSessionAdapterOptions { databaseUrl: string; pgPool?: PgPool; schemaName?: string; tableName?: string; } /** * /!\ WIP - Not working yet - WIP /!\ */ export declare class PostgresSessionAdapter implements ISessionStoreAdapter { private options; private dbPool; private getUniqId; constructor(options: PostgresSessionAdapterOptions); setUniqIdGenerator(uniqIdGenerator: () => string): void; createSession(sessionData: CustomSession, expiresAt: Date | null, metas: { detectedIPAddress?: string | undefined; detectedUserAgent: string; }): Promise; readSessionById(sessionId: string): Promise; updateSessionById(_sessionId: string, _session: Session): Promise; deleteSessionById(_sessionId: string): Promise; } export {};