import type { ConsentChoices, ConsentRecord } from './types.js'; export interface CookieStoreOptions { cookieName?: string; cookieLifetimeDays?: number; cookieDomain?: string; } /** * Reads and writes the consent cookie. * * The cookie value is a base64-encoded JSON object containing * the consent choices, revision, and timestamp. */ export declare class CookieStore { private name; private lifetimeDays; private domain; constructor(options?: CookieStoreOptions); /** Read the stored consent record, or null if none exists. */ read(): ConsentRecord | null; /** Write a consent record to the cookie. */ write(record: ConsentRecord): void; /** Remove the consent cookie. */ clear(): void; /** Delete specific cookies by name (used for auto-clear on revocation). */ clearCookies(names: string[]): void; /** Get the current consent choices, or an empty object if none stored. */ getChoices(): ConsentChoices; private getCookie; private setCookie; private escapeRegex; }