import { type JWTToken } from '@coze/api';
export declare function applyToken(): Promise<JWTToken>;
export declare function getTempPath(tmpPath: string): string;
export declare function uploadFile(tmpFile: string, autoClear?: boolean): Promise<{
    url: string;
}>;
export declare function createTempDir(): string;
interface ILocalFile {
    file: string;
    contentType?: string;
    createOutput: (ext: string) => string;
}
export declare function downloadFile(url: string, filename: string, tempDir?: string): Promise<ILocalFile>;
export declare function downloadFiles(files: {
    url: string;
    filename: string;
}[]): Promise<ILocalFile[]>;
export {};
