import { BinaryImageRef, FileApiCredentials, FileRef } from './FileApiProvider'; export type Translate = (key: string) => string; export declare function buildCookie(credentials?: FileApiCredentials): string; export declare function metaFileContentUrl(baseUrl: string, ref: FileRef): string; export declare function metaFileDownloadUrl(baseUrl: string, ref: FileRef): string; export declare function binaryImageUrl(baseUrl: string, ref: BinaryImageRef): string; export declare function getUniqueFileName(basePath: string, fileName: string): Promise; export declare function requestStoragePermission(translate?: Translate): Promise; export declare function openLocalFile(path: string, translate?: Translate): Promise; export declare function downloadUrlToPath(url: string, toFile: string, cookie: string): Promise; export declare function saveUrlToDevice(url: string, fileName: string, cookie: string, translate?: Translate): Promise;