1 import { EventLoop } from '@proton/account';
2 import { WasmApiWallet, WasmApiWalletAccount, WasmApiWalletKey, WasmApiWalletSettings } from '@proton/andromeda';
3 import { EventItemUpdate } from '@proton/shared/lib/helpers/updateCollection';
5 export type WalletEvent = EventItemUpdate<WasmApiWallet, 'Wallet'>;
6 export type WalletAccountEvent = EventItemUpdate<WasmApiWalletAccount, 'WalletAccount'>;
7 export type WalletKeyEvent = EventItemUpdate<WasmApiWalletKey, 'WalletKey'>;
8 export type WalletSettingsEvent = EventItemUpdate<WasmApiWalletSettings, 'WalletSettings'>;
10 export type WalletEventLoop = EventLoop & {
11 Wallets?: WalletEvent[];
12 WalletAccounts?: WalletAccountEvent[];
13 WalletKeys?: WalletKeyEvent[];
14 WalletSettings?: WalletSettingsEvent[];