export type SameSiteValue = 'Strict' | 'Lax' | 'None'; export interface CookieOptions { 'expires'?: string; 'max-age'?: number; 'path'?: string; 'domain'?: string; 'secure'?: boolean; 'sameSite'?: SameSiteValue; } export interface DeleteOptions { path?: string; domain?: string; } export declare class CookieBuilder { private name; private value; private options; constructor(name: string, value: string); expires(date: Date | string): this; maxAge(seconds: number): this; path(path: string): this; domain(domain: string): this; secure(): this; sameSite(value: SameSiteValue): this; /** Returns the `Set-Cookie` style string without writing anything. */ build(): string; /** Writes the cookie to `document.cookie` and returns the string written. */ save(): string; } export declare class CookieManager { /** Starts a cookie; chain options then `.save()` to write it. */ static set(name: string, value: string): CookieBuilder; static get(name: string): string | null; static getAll(): Record; static delete(name: string, options?: DeleteOptions): void; static exists(name: string): boolean; static clear(options?: DeleteOptions): void; } //# sourceMappingURL=cookie.d.ts.map