/** * PKCE cookie storage utilities. * Handles serialization, parsing, and clearing of PKCE verifier cookies. * * @internal This module is not exported from the main package. */ /** * Cookie name for PKCE verifier storage. */ export declare const PKCE_COOKIE_NAME = "mastra_pkce_verifier"; /** * Data stored in the PKCE cookie. */ export interface PKCECookieData { verifier: string; state: string; expiresAt: number; } /** * Create a Set-Cookie header value for storing PKCE verifier and state. * * @param verifier - The code verifier for PKCE * @param state - The state parameter for CSRF protection * @param isProduction - Whether to add Secure flag (required for HTTPS) * @returns Set-Cookie header value */ export declare function setPKCECookie(verifier: string, state: string, isProduction: boolean): string; /** * Parse the PKCE cookie from a Cookie header. * * @param cookieHeader - The Cookie header value (may be null) * @returns Parsed cookie data * @throws PKCEError if cookie is missing, expired, or malformed */ export declare function parsePKCECookie(cookieHeader: string | null): PKCECookieData; /** * Create a Set-Cookie header value to clear the PKCE cookie. * * @returns Set-Cookie header value that expires the cookie */ export declare function clearPKCECookie(): string; //# sourceMappingURL=cookie.d.ts.map