import type { DocumentPickerResponse } from 'react-native-document-picker'; import type { IUploadTempSource } from '../interface'; export declare const isImage: (t: string) => boolean; /** * 文件上传的压缩文件缓存目录 */ export declare const UPLOAD_CACHE_DIR: string; export declare const buildCachePath: (filename: string) => Promise; export declare const buildUri: (p: string) => string; export declare const normalizePath: (p: string) => string; export declare const compressorImage: (filePath: string, clear: boolean) => Promise; export declare const compressorVideo: (filePath: string, clear: boolean) => Promise; /** * 文档选择器文件另存操作 * @param param0 * @returns */ export declare const getResolvedPath: ({ uri, name, type, }: DocumentPickerResponse) => Promise; /** * 图片视频压缩 * @param uri * @param type * @returns */ export declare function compress(uri: string, type: string): Promise; //# sourceMappingURL=helper.d.ts.map