/** * File format detection and utilities * Extracted from web-app for reusability across integrations */ /** * Image file extensions that support presets/transformations */ export declare const PRESET_SUPPORTED_FORMATS: readonly ["gif", "png", "jpg", "jp2", "jps", "jpeg", "bmp", "tiff", "tif", "svg", "eps", "ai", "ico", "psd", "arw", "crw", "nrw", "cr2", "dcr", "dng", "mrw", "nef", "orf", "pef", "raf", "indt", "indd", "idml", "webp", "pam", "pbm", "xbm", "3fr", "mos", "ppm", "erf", "x3f", "kdc", "sr2", "mef"]; /** * Image formats that support drag-and-drop embedding */ export declare const DRAG_DROP_SUPPORTED_FORMATS: readonly ["jpg", "jpeg", "png", "gif", "webp", "svg", "avif", "apng", "bmp", "ico"]; /** * Common image formats */ export declare const IMAGE_FORMATS: readonly ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp", "ico", "tiff", "tif", "avif", "apng"]; /** * Common video formats */ export declare const VIDEO_FORMATS: readonly ["mp4", "mov", "avi", "wmv", "flv", "webm", "mkv", "m4v", "mpg", "mpeg"]; /** * Common document formats */ export declare const DOCUMENT_FORMATS: readonly ["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "rtf", "odt", "ods", "odp"]; /** * Get file extension from filename */ export declare function getFileExtension(filename: string): string; /** * Check if file supports image presets/transformations */ export declare function supportsPresets(filename: string, mimetype?: string): boolean; /** * Check if file supports drag-and-drop embedding */ export declare function supportsDragDrop(filename: string): boolean; /** * Check if file is an image */ export declare function isImageFile(filename: string): boolean; /** * Check if file is a video */ export declare function isVideoFile(filename: string): boolean; /** * Check if file is a document */ export declare function isDocumentFile(filename: string): boolean; /** * Get MIME type from filename */ export declare function getMimeType(filename: string): string; /** * Get file type icon name (Material Symbols) */ export declare function getFileTypeIcon(filename: string): string; //# sourceMappingURL=file-formats.d.ts.map