import type { ConnectSettings, Params, EVMSignedTx, EVMSignTransactionParams, EVMSignMessageParams, EVMSignTypedDataParams, EVMGetPublicKeyParams } from "@onekeyfe/hd-core"; import type { EthereumMessageSignature } from "@onekeyfe/hd-transport"; type Unsuccessful = { success: false; payload: { error: string; code?: string | number; }; }; type Success = { success: true; payload: T; }; type Response = Promise | Unsuccessful>; export type OneKeyBridge = { model?: string; on(event: string, callback: (event: any) => void): void; off(event: string): void; init(settings: Partial): Promise; dispose(): Promise; updateTransportMethod(transportType: string): Promise; getPublicKey(params: Params): Response<{ publicKey: string; chainCode: string; }>; getPassphraseState(): Response; ethereumSignTransaction(params: Params): Response; ethereumSignMessage(params: Params): Response; ethereumSignTypedData(params: Params): Response; }; export {}; //# sourceMappingURL=onekey-bridge.d.mts.map