import { DataItemType } from '../service/data-set/data-item-type.js'; /** * MIME type mappings for media types */ export declare const MEDIA_MIME_TYPES: { image: string[]; video: string[]; audio: string[]; }; /** * File extension to MIME type mapping */ export declare const EXTENSION_TO_MIME: Record; /** * Check if a MIME type is valid for a given media type */ export declare function isValidMimeType(mediaType: DataItemType, mimetype: string): boolean; /** * Check if file extension is allowed based on options.accept */ export declare function isAcceptedFormat(filename: string, acceptFormats?: string[]): boolean; /** * Validate file size against options.maxSize */ export declare function isValidFileSize(fileSize: number, maxSize?: number): boolean; /** * Validation result */ export interface MediaValidationResult { valid: boolean; errors: string[]; } /** * Validate media file against DataItem options */ export declare function validateMediaFile(file: { mimetype: string; size?: number; name: string; }, mediaType: DataItemType, options?: { accept?: string[]; maxSize?: number; }): MediaValidationResult; /** * Check if a DataItemType is a media type */ export declare function isMediaType(type: DataItemType): boolean; /** * Check if a DataItemType is a file or media type */ export declare function isFileOrMediaType(type: DataItemType): boolean;