export type ImportPrivateKeyArgs = { chain?: string; privateKey: string; thresholdSignatureScheme?: string; publicAddressCheck?: string; addressType?: string; password?: string; legacyWalletId?: string; }; export type ExportClientKeysharesArgs = { accountAddress: string; password?: string; }; export type BackupKeySharesToGoogleDriveArgs = { accountAddress: string; password?: string; googleDriveAccessToken?: string; }; export type DelegateKeySharesArgs = { accountAddress: string; password?: string; }; export type RevokeDelegationArgs = { accountAddress: string; password?: string; }; export type RefreshWalletAccountSharesArgs = { accountAddress: string; password?: string; }; export type UpdatePasswordArgs = { accountAddress: string; existingPassword: string; newPassword: string; }; export type SetPasswordArgs = { accountAddress: string; newPassword: string; }; export type SignRawMessageArgs = { accountAddress: string; message: string; password?: string; }; export type UnlockWalletArgs = { accountAddress: string; password?: string; }; export type GetWalletRecoveryStateArgs = { accountAddress: string; }; export type WalletRecoveryState = { walletReadyState: 'ready' | 'encrypted'; isPasswordEncrypted: boolean; }; export type WaasMessages = { /** * Either `walletId` or `args.chain` must be provided. If both are present, * `args.chain` takes precedence. `walletId` is kept for backwards * compatibility with older React Native clients; new callers should pass * `undefined` for `walletId` and provide `args.chain` instead. */ waas_importPrivateKey: (walletId: string | null, args: ImportPrivateKeyArgs) => Promise; waas_exportClientKeyshares: (walletId: string, args: ExportClientKeysharesArgs) => Promise; waas_backupKeySharesToGoogleDrive: (walletId: string, args: BackupKeySharesToGoogleDriveArgs) => Promise; waas_delegateKeyShares: (walletId: string, args: DelegateKeySharesArgs) => Promise; waas_revokeDelegation: (walletId: string, args: RevokeDelegationArgs) => Promise; waas_refreshWalletAccountShares: (walletId: string, args: RefreshWalletAccountSharesArgs) => Promise; waas_updatePassword: (walletId: string, args: UpdatePasswordArgs) => Promise; waas_setPassword: (walletId: string, args: SetPasswordArgs) => Promise; waas_signRawMessage: (walletId: string, args: SignRawMessageArgs) => Promise; waas_unlockWallet: (walletId: string, args: UnlockWalletArgs) => Promise; waas_getWalletRecoveryState: (walletId: string, args: GetWalletRecoveryStateArgs) => Promise; };