export declare enum TransactionEventType { ERROR = "error", SUCCESS = "success", PROMPT = "prompt", ACCEPT = "accept", REJECT = "reject" } export type TransactionEventData = { type: T; } & (T extends TransactionEventType.ERROR ? { error: Error; } : T extends TransactionEventType.SUCCESS ? { txHash: string; } : {});