/**
 * Cookie Override Handler
 *
 * Manages cookie-based host override for development environments.
 */
import type { HostOverrideConfig } from './types.js';
/**
 * Parse cookies from request
 */
export declare function parseCookies(request: Request): Record<string, string>;
/**
 * Get cookie value from request
 */
export declare function getCookie(request: Request, name: string): string | undefined;
/**
 * Create Set-Cookie header to delete a cookie
 */
export declare function createDeleteCookieHeader(name: string): string;
/**
 * Create error response with cookie deletion
 */
export declare function createCookieErrorResponse(cookieName: string, message: string): Response;
/**
 * Check if current host is allowed to use override
 */
export declare function isHostAllowed(request: Request, allowedHosts: string[]): boolean;
/**
 * Handle cookie override logic
 *
 * Returns overridden hostname if valid, original hostname if no override.
 * Throws errors for invalid overrides.
 */
export declare function handleCookieOverride(request: Request, config: HostOverrideConfig | undefined, context: any): string;
//# sourceMappingURL=cookie-handler.d.ts.map