import type { PayloadCipher } from '@pondoknusa/crypto'; import type { DatabaseConnection } from '@pondoknusa/database'; import type { SessionStore } from './session.js'; import type { SessionIntegrity } from './session-integrity.js'; export declare class DatabaseSessionStore implements SessionStore { private readonly connection; private readonly table; private readonly cipher?; private readonly integrity?; private readonly lifetimeMinutes; constructor(connection: DatabaseConnection, table?: string, cipher?: PayloadCipher | undefined, integrity?: SessionIntegrity | undefined, lifetimeMinutes?: number); read(id: string): Promise>; write(id: string, data: Record, _lifetimeMinutes: number): Promise; destroy(id: string): Promise; pruneExpired(lifetimeMinutes: number): Promise; private decodeRow; } export declare class MemorySessionStore implements SessionStore { private readonly integrity?; private readonly lifetimeMinutes; private readonly sessions; constructor(integrity?: SessionIntegrity | undefined, lifetimeMinutes?: number); read(id: string): Promise>; write(id: string, data: Record, lifetimeMinutes: number): Promise; destroy(id: string): Promise; } //# sourceMappingURL=session-store.d.ts.map