import { Condition, ObjectValue } from '@oinone/kunlun-request';
export interface CdnFileSingleUploadData {
    /**
     * 上传方式 默认: POST
     */
    httpMethod?: string;
    /**
     * 上传URL
     */
    uploadUrl: string;
    /**
     * Headers
     */
    uploadHeaders?: Record<string, string>;
    /**
     * FormData
     */
    uploadFormData?: Record<string, string>;
}
export interface CdnFileCompleteUploadData extends CdnFileSingleUploadData {
    /**
     * 上传完成数据
     */
    uploadData: string;
    /**
     * 上传完成分片数据
     */
    uploadPartData: string;
    /**
     * 上传完成分片上下文
     */
    uploadPartContext: Record<string, string>;
}
export interface CdnFileMultipartUploadData {
    /**
     * 分片上传请求数据
     */
    uploadDataList: CdnFileSingleUploadData[];
    /**
     * 上传完成请求数据
     */
    completeUploadData: CdnFileCompleteUploadData;
    /**
     * 支持暂停URL
     */
    pauseUrl?: string;
    /**
     * 支持恢复URL
     */
    resumeUrl?: string;
}
export interface CdnFileUploadData {
    /**
     * 下载URL
     */
    downloadUrl: string;
    /**
     * 文件名
     */
    filename: string;
    /**
     * 单文件上传JSON数据
     */
    singleUploadJson: string;
    /**
     * 单文件上传数据
     */
    singleUploadData: CdnFileSingleUploadData;
    /**
     * 分片上传/断点续传JSON数据
     */
    multipartUploadJson?: string;
    /**
     * 分片上传/断点续传数据
     */
    multipartUploadData?: CdnFileMultipartUploadData;
}
export interface UploadChunkFile {
    partNumber: number;
    fileSize: number;
}
declare const getFileSignature: (filename: string, cdnKey?: string | undefined, fileInfo?: {
    size: number;
    accept?: string | undefined;
    type: string;
    chunkFiles: UploadChunkFile[];
} | undefined) => Promise<CdnFileUploadData>;
declare const downloadFile: (url: string, cdnKey?: string | undefined) => void;
declare const createResourceFile: (response: any, url: string, size: number, name: string, type?: string) => Promise<Record<string, unknown>>;
declare const createEasyImportTask: (id: any, file: any, variables?: ObjectValue | undefined) => Promise<Record<string, unknown>>;
declare const importTaskWithTableField: ({ id, file, methodName }: {
    id: any;
    file: any;
    methodName: any;
}, variables?: ObjectValue | undefined) => Promise<Record<string, unknown>>;
declare const getExportWorkBook: (model: any, isExport: any) => Promise<unknown>;
declare const getEasyImportTemplate: (id: any) => Promise<Record<string, unknown>>;
declare const createEasyExportTask: (id: any, condition: string | Condition) => Promise<Record<string, unknown>>;
export { createResourceFile, getFileSignature, downloadFile, createEasyImportTask, getExportWorkBook, getEasyImportTemplate, createEasyExportTask, importTaskWithTableField };
