import { CurrentAccountInfo } from '@soul-wallet/extension-base/background/KoniTypes'; import { SWTransaction } from '@soul-wallet/extension-base/services/transaction-service/types'; export interface EventRegistry { 'general.sleep': [boolean]; 'general.wakeup': [boolean]; 'crypto.ready': [boolean]; 'database.ready': [boolean]; 'keyring.ready': [boolean]; 'account.updateCurrent': [CurrentAccountInfo]; 'account.ready': [boolean]; 'account.add': [string]; 'account.update': [string]; 'account.remove': [string]; 'chain.ready': [boolean]; 'chain.add': [string]; 'chain.updateState': [string]; 'asset.ready': [boolean]; 'asset.updateState': [string]; 'transaction.done': [SWTransaction]; 'transaction.failed': [SWTransaction | undefined]; 'transaction.submitStaking': [string]; 'transaction.transferNft': [SWTransaction | undefined]; 'mantaPay.initSync': [string | undefined]; 'mantaPay.submitTransaction': [SWTransaction | undefined]; 'mantaPay.enable': [string]; } export declare type EventType = keyof EventRegistry; export declare const COMMON_RELOAD_EVENTS: EventType[]; export interface EventItem { type: T; data: EventRegistry[T]; } export interface EventEmitterRegistry extends EventRegistry { lazy: EventItem[]; }