/** * Safely read from a cookie. * - Returns undefined if not in browser or the cookie is missing * - Returns parsed JSON if the value is JSON * - Returns plain string if not JSON * - Never throws */ export declare function readCookie(name: string): T | string | undefined; /** * Safely write a cookie. * - Automatically JSON.stringifies objects/arrays/booleans/numbers * - Stores plain strings as-is * - Never throws */ export declare function writeCookie(name: string, value: unknown, maxAgeSeconds?: number): void; /** * Remove a cookie safely */ export declare function removeCookie(name: string): void;