import type { AbTestAssignment, AbTestCookie } from '../types'; /** Default cookie name for A/B test assignments */ export declare const DEFAULT_COOKIE_NAME = "ab-test-info"; /** Default cookie max age: 30 days in seconds */ export declare const DEFAULT_COOKIE_MAX_AGE: number; /** * Parse the A/B test cookie value into an assignment map. * * @param cookieValue - The raw cookie value string * @returns Parsed assignment map, or empty object if invalid */ export declare function parseCookie(cookieValue: string | undefined): AbTestCookie; /** * Serialize an assignment map to a cookie value string. * * @param assignments - The assignment map to serialize * @returns Serialized cookie value */ export declare function serializeCookie(assignments: AbTestCookie): string; /** * Get a specific test assignment from the cookie. * * @param cookie - Parsed cookie object * @param testId - The test ID to look up * @returns The assignment for this test, or undefined */ export declare function getAssignment(cookie: AbTestCookie, testId: string): AbTestAssignment | undefined; /** * Set a test assignment in the cookie object. * * @param cookie - Parsed cookie object (will be mutated) * @param testId - The test ID * @param assignment - The assignment to store */ export declare function setAssignment(cookie: AbTestCookie, testId: string, assignment: AbTestAssignment): void; /** * Read an A/B test cookie from a document.cookie string (client-side). * * @param documentCookie - The document.cookie string * @param cookieName - The cookie name to look for * @returns Parsed assignment map, or empty object if not found */ export declare function readCookieFromDocument(documentCookie: string, cookieName?: string): AbTestCookie; //# sourceMappingURL=cookies.d.ts.map