import type LedgerHwAppEth from "@ledgerhq/hw-app-eth"; import type Transport from "@ledgerhq/hw-transport"; import type { EIP712Message } from "@ledgerhq/types-live"; export type GetPublicKeyParams = { hdPath: string; }; export type GetPublicKeyResponse = Awaited>; export type LedgerSignTransactionParams = { hdPath: string; tx: string; }; export type LedgerSignTransactionResponse = Awaited>; export type LedgerSignMessageParams = { hdPath: string; message: string; }; export type LedgerSignMessageResponse = Awaited>; export type LedgerSignTypedDataParams = { hdPath: string; message: EIP712Message; }; export type LedgerSignTypedDataResponse = Awaited>; export type LedgerSignDelegationAuthorizationParams = { hdPath: string; chainId: number; contractAddress: string; nonce: number; }; export type LedgerSignDelegationAuthorizationResponse = Awaited<{ s: string; v: string; r: string; }>; export type GetAppNameAndVersionResponse = { appName: string; version: string; }; export type AppConfigurationResponse = { arbitraryDataEnabled: number; erc20ProvisioningNecessary: number; starkEnabled: number; starkv2Supported: number; version: string; }; export type LedgerBridgeOptions = Record; export type LedgerBridge = { isDeviceConnected: boolean; init(): Promise; destroy(): Promise; /** * Method to get the current configuration of the ledger bridge keyring. */ getOptions(): Promise; /** * Method to set the current configuration of the ledger bridge keyring. * * @param opts - An object contains configuration of the bridge. */ setOptions(opts: T): Promise; attemptMakeApp(): Promise; updateTransportMethod(transportType: string | Transport): Promise; getPublicKey(params: GetPublicKeyParams): Promise; deviceSignTransaction(params: LedgerSignTransactionParams): Promise; deviceSignMessage(params: LedgerSignMessageParams): Promise; deviceSignTypedData(params: LedgerSignTypedDataParams): Promise; deviceSignDelegationAuthorization(params: LedgerSignDelegationAuthorizationParams): Promise; /** * Method to retrieve the name and version of the running application on the Ledger device. * * @returns An object containing appName and version. */ getAppNameAndVersion(): Promise; /** * Method to retrieve the configuration of the running application on the Ledger device. * * @returns An object containing the configuration of the running application. */ getAppConfiguration(): Promise; }; //# sourceMappingURL=ledger-bridge.d.cts.map