/** * ResponseBuilder - Fluent methods for configuring response builder state */ import type { CacheStrategy, SecurityConfig, SyncCORSConfig } from "./types.js"; export interface FluentMethodsContext { headers: Headers; status: number; securityConfig: SecurityConfig | null; isDev: boolean; nonce: string; adapter: import("../../../platform/adapters/base.js").RuntimeAdapter | undefined; isVeryfrontDomain: boolean; } /** Apply CORS headers based on configuration */ export declare function withCORS(this: T, req: Request, corsConfig?: boolean | SyncCORSConfig): T; /** Apply CORS headers asynchronously */ export declare function withCORSAsync(this: T, req: Request): Promise; /** Apply security headers (CSP, COOP, CORP, COEP) and optionally set CSRF cookie */ export declare function withSecurity(this: T, config?: SecurityConfig, req?: Request): T; /** Apply cache control headers based on strategy */ export declare function withCache(this: T, strategy: CacheStrategy): T; /** Set ETag header */ export declare function withETag(this: T, etag: string): T; /** Set custom headers */ export declare function withHeaders(this: T, headers: HeadersInit | Record): T; /** Set response status */ export declare function withStatus(this: T, status: number): T; /** Apply Client Hints headers for theme detection */ export declare function withClientHints(this: T): T; /** Set Allow header for OPTIONS requests */ export declare function withAllow(this: T, methods: string | string[]): T; //# sourceMappingURL=fluent-methods.d.ts.map