/** * @title FileType * @description 文件名后缀, 仅识别数字和字母组成的文件拓展名后缀 * @version 0.1.0 */ export declare type FileType = 'Image' | 'Video' | 'PDF' | 'Word' | 'Excel'; /** * @title FileTypeMap * @description 文件类型映射 * @version 0.1.0 */ export declare const FileTypeMap: Map; /** * @title isFileExtension * @description 是否为指定字符串结尾 * @param fileName string 文件名 * @param list string[] 文件拓展名数组 * @returns boolean * @version 0.1.0 */ export declare function isFileExtension(fileName: string, list?: string[]): boolean; /** * @title isFile * @param fileName string * @param type {FileType} * @returns boolean * @version 0.1.0 */ export declare function isFile(fileName: string, type: FileType): boolean; /** * @title isImageFile * @param fileName string * @returns boolean * @version 0.1.0 */ export declare function isImageFile(fileName: string): boolean; /** * @title isVideoFile * @param fileName string * @returns boolean * @version 0.1.0 */ export declare function isVideoFile(fileName: string): boolean; /** * @title isPdfFile * @param fileName string * @returns boolean * @version 0.1.0 */ export declare function isPdfFile(fileName: string): boolean; /** * @title isWordFile * @param fileName string * @returns boolean * @version 0.1.0 */ export declare function isWordFile(fileName: string): boolean; /** * @title isExcelFile * @param fileName string * @returns boolean * @version 0.1.0 */ export declare function isExcelFile(fileName: string): boolean; export declare const isClient: boolean; /** * @title isBoolean * @description 是否为布尔值 * @param val {unknown} * @returns {boolean} */ export declare const isBoolean: (val: unknown) => val is boolean; export declare const isWindow: (val: unknown) => val is Window; export declare const isIOS: boolean | ""; export declare const hasOwn: (val: T, key: K) => key is K; //# sourceMappingURL=isUtil.d.ts.map