export declare class MimeTypeValidator { /** * 允許的 MIME 類型 */ allowMimeTypes: string[]; /** * @param accept string | undefined * 可能為 * image/* * image/*, application/* * image/jpeg, application/pdf */ constructor(accept: string | undefined); /** * 驗證 MIME 類型是否符合允許的類型 * @param mimeType - 要驗證的 MIME 類型 * @returns 如果符合允許的類型返回 true,否則返回 false * @example * ```ts * const utils = new MediaLibraryUtils('image/*') * utils.validate('image/jpeg') // true * utils.validate('video/mp4') // false * ``` */ validate: (mimeType: string) => boolean; }