import type { SessionStore } from '../../contracts/SessionStore.js'; /** * Cookie-backed session: the serialized payload lives entirely in the session cookie. * * When `encrypt` is true, the payload is AES-256-GCM encrypted; otherwise it is signed with HMAC-SHA256. */ export declare class CookieStore implements SessionStore { private readonly secret; private readonly encrypt; private incomingCookie; private outgoingPayload; /** * @param secretKey - Application secret (UTF-8) used for signing/encryption. * @param encrypt - When true, encrypt payload; when false, sign only. */ constructor(secretKey: string, encrypt: boolean); /** * Captures the raw `Cookie` header for {@link CookieStore.read}. * * @param cookieHeader - `Cookie` header value. * @param cookieName - Session cookie name. */ setIncoming(cookieHeader: string | undefined, cookieName: string): void; /** * @returns Payload to set on `Set-Cookie` after {@link CookieStore.write}. */ getOutgoingCookieValue(): string; /** * @inheritdoc */ open(_savePath: string, _sessionName: string): Promise; /** * @inheritdoc */ close(): Promise; /** * @inheritdoc */ read(_sessionId: string): Promise; /** * @inheritdoc */ write(_sessionId: string, data: string): Promise; /** * @inheritdoc */ destroy(_sessionId: string): Promise; /** * @inheritdoc */ gc(_maxLifetime: number): Promise; } //# sourceMappingURL=CookieStore.d.ts.map