/** Resolve the media type of a generated or public asset. @internal */ export declare function publicContentType(filename: string): string; /** * Resolve a request subpath to an on-disk file under `publicRoot`, rejecting * path traversal. * * @param publicRoot - Absolute path to the `public/` directory on disk. * @param subpath - Request path after the `/public/` route prefix. * @returns Absolute file path when safe and present, otherwise `null`. * * @internal */ export declare function resolvePublicFilePath(publicRoot: string, subpath: string): Promise; /** * Serve one static view-bundle or project-public file. * * @param diskPath - Absolute path resolved by {@link resolvePublicFilePath}. * @param options - `head` returns headers without opening a file stream. * When `deferCors` is true, omit hardcoded `ACAO: *` so global * {@link ServerConfig.cors} middleware owns CORS headers. * @returns A `Response` with `Cache-Control: public, max-age=0, must-revalidate` * and optionally `Access-Control-Allow-Origin: *` so cross-origin sandboxed * view iframes can load static files (module scripts and fetches use CORS mode). * * @internal */ export declare function servePublicFile(diskPath: string, options?: { deferCors?: boolean; head?: boolean; }): Promise;