/** * Inline implementation of the `mime-types` module surface veryfront uses. * * API-compatible with the MIT-licensed `mime-types` npm package — this is a * clean-room rewrite against the public API; no source was copied. MIME * values are IANA-assigned identifiers (not copyrightable). * * Replaces the npm `mime-types` dep per spec §8.3 with a static lookup table. * Covers the extensions veryfront serves internally (web assets, fonts, MDX, * WASM, source maps) plus the common upload formats users pass to the * `veryfront uploads` CLI — CSV, ZIP archives, office docs, audio/video — * so `lookupMimeType()` doesn't silently collapse them to * `application/octet-stream`. For unknown extensions `lookup()` still * returns `false`, matching the original module's sentinel value. */ /** * Look up the MIME type for a file path or bare extension. Accepts values * with or without a leading dot. Returns `false` when no mapping is known. * * Uses `Object.hasOwn()` so extensions that collide with inherited props * (e.g. `file.toString`, `file.constructor`) return `false` instead of * leaking a function / prototype value through the `?? false` fallback. */ export declare function lookup(path: string): string | false; /** * Return `"UTF-8"` for MIME types whose payload is text (text/*, JS, JSON). * Returns `false` otherwise — matching the original module's sentinel. */ export declare function charset(mime: string): string | false; /** * Reverse of `lookup()`: given a MIME type, return a canonical file extension * (without leading dot) or `false` when unknown. Uses `Object.hasOwn()` for * the same reason `lookup()` does (avoid prototype-property leaks). */ export declare function extension(mime: string): string | false; //# sourceMappingURL=mime-types.d.ts.map