import { Client } from './client/Client.js'; import { MetadataExport, PersistedFileData } from './persistence/interfaces.js'; type BackupClient = Pick; export declare function createClientBackup(client: BackupClient): Promise; export declare function readBackupFile(file: Blob): Promise<{ data: MetadataExport; fileData: Omit[]; files: File[]; }>; export declare function importClientBackup(client: BackupClient, file: Blob): Promise; /** * Call this function in the app codebase which allows transfer to another origin * to advertise the transfer. */ export declare function advertiseTransferTo(client: BackupClient, destination: string): void; /** * Call this function in the app codebase which allows transfer from another origin * to accept the transfer. */ export declare function acceptTransferFrom(client: BackupClient, origin: string, onComplete?: () => void): void; export declare function transferOrigins(client: BackupClient, from: string, to: string, handlers?: { onStart?: () => void; onComplete?: () => void; }): Promise; export {};