import type { FileSystemServerOptions } from '../../../types/internal-types.js'; import type { RouteRendererBody } from '../../../types/public-types.js'; /** * Builds HTTP responses for static files and shared file-system fallbacks. */ export declare class FileSystemServerResponseFactory { private options; constructor({ options }: { options: FileSystemServerOptions; }); isHtml(contentType: string): contentType is "text/html"; shouldEnableGzip(contentType: string): boolean; createResponseWithBody(body: RouteRendererBody, init?: ResponseInit): Promise; createDefaultNotFoundResponse(): Promise; /** * Wraps already-rendered HTML in a 404 response envelope. */ createHtmlNotFoundResponse(body: RouteRendererBody): Promise; createDefaultServerErrorResponse(): Promise; /** * Wraps already-rendered HTML in a 500 response envelope. */ createHtmlServerErrorResponse(body: RouteRendererBody): Promise; /** * Reads a static file response, returning `null` when the file is missing. */ createFileResponse(filePath: string, contentType: string): Promise; }