import { ViewModel } from "../../ViewModel"; import { SegmentType } from "../../navigation/index"; import type { Options as BaseOptions } from "../../ViewModel"; import type { Session } from "../../../matrix/Session"; export declare enum Status { Enabled = 0, SetupWithPassphrase = 1, SetupWithRecoveryKey = 2, Pending = 3, NewVersionAvailable = 4 } export declare enum BackupWriteStatus { Writing = 0, Stopped = 1, Done = 2, Pending = 3 } type Options = { session: Session; } & BaseOptions; export declare class KeyBackupViewModel extends ViewModel { private _error?; private _isBusy; private _dehydratedDeviceId?; private _status; private _backupOperationSubscription?; private _keyBackupSubscription?; private _progress?; private _setupKeyType; constructor(options: any); private get _session(); private get _keyBackup(); private get _crossSigning(); private _onKeyBackupChange; get status(): Status; get decryptAction(): string; get purpose(): string; offerDehydratedDeviceSetup(): boolean; get dehydratedDeviceId(): string | undefined; get isBusy(): boolean; get backupVersion(): string; get isMasterKeyTrusted(): boolean; get canSignOwnDevice(): boolean; signOwnDevice(): Promise; navigateToVerification(): void; get backupWriteStatus(): BackupWriteStatus; get backupError(): string | undefined; get error(): string | undefined; showPhraseSetup(): void; showKeySetup(): void; private _enterCredentials; enterSecurityPhrase(passphrase: any, setupDehydratedDevice: any): Promise; enterSecurityKey(securityKey: any, setupDehydratedDevice: any): Promise; disable(): Promise; get isBackingUp(): boolean; get backupPercentage(): number; get backupInProgressLabel(): string; cancelBackup(): void; startBackup(): void; } export {};