import { Image, ImageOrVideo } from 'react-native-image-crop-picker'; export declare function stripIosImagePickerResultPath(result: ImageOrVideo | Image): ImageOrVideo; export declare type OpenCameraParams = { cropSize?: { width: number; height: number; }; maxMb?: number; }; /** * open camera and select a picture * for custom localization text : https://github.com/ivpusic/react-native-image-crop-picker/issues/813 * @param params */ export declare function openCamera(params: OpenCameraParams): Promise; export declare type OpenAlbumParams = { cropSize?: { width: number; height: number; }; multiple?: boolean; /** * max size(unit mb) of selected image (only useful in no-multiple mode) */ maxMb?: number; /** * media type user want to select */ mediaType?: 'any' | 'video' | 'photo'; }; /** * open album and select a picture * @param params */ export declare function openAlbum(params: OpenAlbumParams): Promise; export declare const curriedByteOverSize: any; /** * the biggest size is 10 mb(ps : 过大加载base64的时候会在android上引发异常) */ export declare const bytesOver10M: any; export declare function generateByteOverFunction(maxMb: number): any; /** * the biggest size is 500 mb */ export declare const bytesOver500M: any; export declare function showOverSizeToast(imageOrVideoValue: ImageOrVideo, sizeInM: string): void; export declare function readableNameOfMedia(imageOrVideoValue: ImageOrVideo): string | undefined; /** * determine two media if is same one * @param firstMedia * @param secondMedia */ export declare function sameMedia(firstMedia: ImageOrVideo, secondMedia: ImageOrVideo): boolean; /** * generate current media identify * @param media */ export declare function mediaIdentify(media: ImageOrVideo): string | undefined; /** * strip suffix form file name and return file name striped * @param fileName */ export declare function stripSuffix(fileName: string): string; /** * return the suffix of file name (include dot) * @param fileName */ export declare function truncateSuffix(fileName: string): string; /** * get the base64 format with this image , used to display in Image component * @param image */ export declare const imageLoadUri: (image: Image) => string; /** * determine current object if a video * @param imageOrVideo */ export declare function isVideo(imageOrVideo: ImageOrVideo): boolean; /** * 该函数用于从uri中截取文件名 , simple : * from : file:///data/user/0/com.dianvo.ykd.app/cache/react-native-image-crop-picker/Screenshot_2020-10-20-00-14-12-600_com.taobao.taobao.jpg * result : Screenshot_2020-10-20-00-14-12-600_com.taobao.taobao.jpg */ export declare function normallyExtractFileNameFromUri(url: string): string; /** * 该函数用于从url中截取文件名 , simple : * from : https://res.yikeduo.com/DOC/5/23/368051540618514432_0.pdf?md5hash=2be59bca9c09d1413052683222e93c18×tamp=1602490018 * result : 368051540618514432_0.pdf */ export declare function normallyExtractFileNameFromUrl(url: string): string;