import type { Context } from 'hono'; export interface CookieOptions { httpOnly?: boolean; secure?: boolean; sameSite?: 'strict' | 'lax' | 'none'; maxAge?: number; expires?: Date; path?: string; domain?: string; } export declare class CookieManager { /** * Get cookie prefix from context or environment variable * Defaults to 'prodobit' if not set */ private static getCookiePrefix; /** * Generate cookie name with dynamic prefix */ private static getCookieName; /** * Set access token cookie (accessible to JavaScript) */ static setAccessTokenCookie(c: Context, accessToken: string, expiresAt: Date): void; /** * Set refresh token cookie (accessible to JavaScript for client-side refresh) */ static setRefreshTokenCookie(c: Context, refreshToken: string, expiresAt: Date): void; /** * Set CSRF token cookie (HTTP-only for security) */ static setCSRFTokenCookie(c: Context, csrfToken: string, expiresAt: Date): void; /** * Set tenant ID cookie (accessible to JavaScript) */ static setTenantIdCookie(c: Context, tenantId: string, expiresAt: Date): void; /** * Clear authentication cookies */ static clearAuthCookies(c: Context): void; /** * Get refresh token from cookie */ static getRefreshTokenFromCookie(c: Context): string | null; /** * Get CSRF token from cookie (HTTP-only) */ static getCSRFTokenFromCookie(c: Context): string | null; /** * Get access token from cookie */ static getAccessTokenFromCookie(c: Context): string | null; /** * Get tenant ID from cookie */ static getTenantIdFromCookie(c: Context): string | null; /** * Extract cookie value by name from request */ private static getCookieValue; /** * Parse cookie header string into object */ private static parseCookies; /** * Serialize cookie with options */ private static serializeCookie; /** * Validate cookie security settings */ static validateCookieSecurity(): { isSecure: boolean; sameSite: 'strict' | 'lax' | 'none'; warnings: string[]; }; /** * Generate device fingerprint from request headers */ static generateDeviceFingerprint(c: Context): string; } //# sourceMappingURL=cookies.d.ts.map