jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/es/_util/promisify.d.ts

51 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
declare namespace My {
interface TempFile {
/**
* @description
*/
path: string;
/**
* @description B
*/
size: number;
}
interface ChooseImage {
apFilePaths?: string[];
tempFilePaths?: string[];
filePaths?: string[];
tempFiles?: TempFile[];
}
interface ChooseVideo {
tempFilePath: string;
duration: number;
size: number;
height: number;
width: number;
success: boolean;
}
interface ChooseFileFromDisk {
apFilePath: string;
success: boolean;
}
interface UploadFile {
data: string;
statusCode: string | number;
header: string;
}
interface GetFileInfo {
digest: string;
size: number;
}
interface DownloadFile {
apFilePath: string;
}
}
export declare const chooseImage: (option: any) => Promise<My.ChooseImage>;
export declare const chooseVideo: (option: any) => Promise<My.ChooseVideo>;
export declare const chooseFileFromDisk: (option?: any) => Promise<My.ChooseFileFromDisk>;
export declare const uploadFile: (option: any) => Promise<My.UploadFile>;
export declare const getFileInfo: (option: any) => Promise<My.GetFileInfo>;
export declare const previewImage: (option: any) => void;
export declare const downloadFile: (option: any) => Promise<My.DownloadFile>;
export {};