/** * Closed mime allowlist for v0.1.x media uploads. Adapter authors * cannot extend this without a grammar-revise round. * * SVG is intentionally absent from the always-on set — object stores * don't sanitize and a passthrough SVG can carry inline scripts. SVG * uploads are only accepted when the adapter wires the use case with * `allowSvg: true`, typically from a `MEDIA_ALLOW_SVG=1` env opt-in. */ export declare const MEDIA_MIME_ALLOWLIST: readonly ["image/png", "image/jpeg", "image/webp", "image/avif", "image/gif"]; export declare const MEDIA_SVG_MIME: "image/svg+xml"; export type MediaMimeType = (typeof MEDIA_MIME_ALLOWLIST)[number] | typeof MEDIA_SVG_MIME; export declare function isAllowedMime(mime: string, allowSvg: boolean): boolean; /** Upload-capability TTL: 15 minutes. Bearer URL is short-lived. */ export declare const UPLOAD_URL_TTL_SECONDS: number; /** Map a mime type to a conventional file extension for object key * construction. Extension is purely cosmetic in R2 — server-side * serving never infers content-type from the key. */ export declare function extensionForMime(mime: string): string; //# sourceMappingURL=mediaAllowlist.d.ts.map