import { DecryptedTransferPayload } from '@standardnotes/snjs' export interface WebClientRequiresDesktopMethods { localBackupsCount(): Promise viewlocalBackups(): void deleteLocalBackups(): Promise syncComponents(payloads: unknown[]): void onMajorDataChange(): void onInitialDataLoad(): void /** * Destroys all sensitive storage data, such as localStorage, IndexedDB, and other log files. */ destroyAllData(): void onSearch(text?: string): void downloadBackup(): void | Promise get extensionsServerHost(): string } export interface DesktopClientRequiresWebMethods { updateAvailable(): void windowGainedFocus(): void windowLostFocus(): void onComponentInstallationComplete( componentData: DecryptedTransferPayload, error: unknown, ): Promise requestBackupFile(): Promise didBeginBackup(): void didFinishBackup(success: boolean): void }