/** The content type a file's extension implies; `application/octet-stream` for the rest. */ export declare function contentTypeOf(path: string): string; export declare function fileResponse(path: string, init?: ResponseInit): Response; /** * Stored bytes as a response, honouring a single `Range: bytes=` as RFC 9110 ยง14 has it: every satisfiable range is a * 206 with its Content-Range, `bytes=0-` (the whole body) included; a range that does not parse, a first-byte-pos past * its last-byte-pos (`bytes=5-2`) included, is ignored and the whole body is a 200; a well-formed range that starts past * the end (any range of an empty body) is a 416. Lazy sources supply inclusive ranges and stream in bounded reads. * `nosniff` stops a browser second-guessing the content type the vendor gave. */ export declare function bytesResponse(request: Request, bytes: Uint8Array | { size: number; range(start: number, end: number): Promise; }, contentType: string, cacheControl?: string): Response;