import type { CacheStrategy, SecurityConfig, SyncCORSConfig } from "./types.js"; import type { RuntimeAdapter } from "../../../platform/adapters/base.js"; type ResponseBuilderConstructor = new (config?: { securityConfig?: SecurityConfig | null; isDev?: boolean; adapter?: import("../../../platform/adapters/base.js").RuntimeAdapter; isVeryfrontDomain?: boolean; }) => ResponseBuilderInstance; interface ResponseBuilderInstance { headers: Headers; status: number; withCORS(req: Request, corsConfig?: boolean | SyncCORSConfig): ResponseBuilderInstance; withSecurity(config?: SecurityConfig, req?: Request): ResponseBuilderInstance; withCache(strategy: CacheStrategy): ResponseBuilderInstance; withETag(etag: string): ResponseBuilderInstance; withAllow(methods: string | string[]): ResponseBuilderInstance; json(data: unknown, status?: number): Response; html(body: string, status?: number): Response; text(message: string, status?: number): Response; withContentType(contentType: string, body?: BodyInit | null): Response; build(body?: BodyInit | null, status?: number): Response; } /** Set ResponseBuilder class reference (called by builder.ts to avoid circular deps) */ export declare function setResponseBuilderClass(builderClass: ResponseBuilderConstructor): void; export declare function error(status: number, message: string, req: Request, config?: { securityConfig?: SecurityConfig | null; corsConfig?: boolean | SyncCORSConfig; contentType?: string; }): Response; export declare function json(data: unknown, req: Request, config?: { status?: number; securityConfig?: SecurityConfig | null; corsConfig?: boolean | SyncCORSConfig; cache?: CacheStrategy; etag?: string; }): Response; export declare function html(body: string, req: Request, config?: { status?: number; securityConfig?: SecurityConfig | null; corsConfig?: boolean | SyncCORSConfig; cache?: CacheStrategy; etag?: string; }): Response; export declare function preflight(req: Request, config?: { allowMethods?: string | string[]; allowHeaders?: string | string[]; securityConfig?: SecurityConfig | null; corsConfig?: boolean | SyncCORSConfig; isDev?: boolean; adapter?: RuntimeAdapter; isVeryfrontDomain?: boolean; }): Response; export declare function stream(streamData: ReadableStream, req: Request, config?: { contentType?: string; securityConfig?: SecurityConfig | null; corsConfig?: boolean | SyncCORSConfig; cache?: CacheStrategy; }): Response; export {}; //# sourceMappingURL=static-helpers.d.ts.map