export type IFileFormatConfig = Record; export declare enum FileFormatEnum { PDF = "application/pdf", MP3 = "audio/mp3", MPEG = "audio/mpeg", MP4 = "video/mp4", JPEG = "image/jpeg", PNG = "image/png" } export declare const fileFormatConfig: IFileFormatConfig; export declare namespace FileFormatEnum { const mimeTypeMap: Map; const sizeMap: Map; /** get allowed MIME types for a file format */ function getAllowedMimeTypes(format: FileFormatEnum): readonly string[]; /** check if a MIME type is allowed for a format */ function isMimeTypeAllowed(format: FileFormatEnum, mimeType: string): boolean; /** get default max file size in bytes */ function defaultSize(format: FileFormatEnum): number; /** get all allowed MIME types from multiple formats */ function getAllowedMimeTypesFromFormats(formats: FileFormatEnum[]): string[]; }