import { type PoolConfig } from 'pg'; import { Session } from '@shopify/shopify-api'; import { SessionStorage, RdbmsSessionStorageOptions } from '@shopify/shopify-app-session-storage'; export interface PostgreSQLSessionStorageOptions extends RdbmsSessionStorageOptions { port: number; /** * TLS settings for the connection, passed to `pg` as its `ssl` option. They * replace any TLS settings in the database URL. */ ssl?: PoolConfig['ssl']; /** * Connect without verified TLS when `NODE_ENV` is `production`. Set this * only for a PostgreSQL server on a network you trust. */ allowInsecureConnection?: boolean; } export declare class PostgreSQLSessionStorage implements SessionStorage { static withCredentials(host: string, dbName: string, username: string, password: string, opts: Partial): PostgreSQLSessionStorage; readonly ready: Promise; private internalInit; private options; private client; private migrator; constructor(dbUrl: URL | string, opts?: Partial); storeSession(session: Session): Promise; loadSession(id: string): Promise; deleteSession(id: string): Promise; deleteSessions(ids: string[]): Promise; findSessionsByShop(shop: string): Promise; disconnect(): Promise; private init; private connectClient; private createTable; private databaseRowToSession; } //# sourceMappingURL=postgresql.d.ts.map