/** * MIME type utilities for media format detection and conversion. * * Provides bidirectional mapping between media formats and MIME types. */ export declare const IMAGE_FORMATS: readonly ["png", "jpg", "jpeg", "gif", "webp"]; export type ImageFormat = (typeof IMAGE_FORMATS)[number]; export type VideoFormat = 'mkv' | 'mov' | 'mp4' | 'webm' | 'flv' | 'mpeg' | 'mpg' | 'wmv' | '3gp'; export type DocumentFormat = 'pdf' | 'csv' | 'doc' | 'docx' | 'xls' | 'xlsx' | 'html' | 'txt' | 'md' | 'json' | 'xml'; export type MediaFormat = DocumentFormat | ImageFormat | VideoFormat; /** * Convert a media format to its MIME type. * * @param format - Media format (e.g., 'png', 'pdf') * @returns MIME type string or undefined if not a known format */ export declare function toMimeType(format: string): string | undefined; /** * Convert a MIME type to its canonical media format. * * @param mimeType - MIME type string (e.g., 'image/png', 'application/pdf') * @returns Media format or undefined if not a known MIME type */ export declare function toMediaFormat(mimeType: string): MediaFormat | undefined; //# sourceMappingURL=mime.d.ts.map