import { type ContextModule } from "@ledgerhq/context-module"; import { type DeviceManagementKit, type DeviceSessionId } from "@ledgerhq/device-management-kit"; import { type EvmAddressBook } from "./model/EvmAddressBook"; import { DefaultSignerEth } from "../internal/DefaultSignerEth"; type SignerEthBuilderConstructorArgs = { dmk: DeviceManagementKit; sessionId: DeviceSessionId; originToken?: string; }; /** * Builder for the `SignerEth` class. * * @example * ``` * const dmk = new SignerEthBuilder(dmk) * .build(); * ``` */ export declare class SignerEthBuilder { private _dmk; private _sessionId; private _customContextModule; private _originToken; private _addressBook; constructor({ dmk, sessionId, originToken, }: SignerEthBuilderConstructorArgs); /** * Override the default context module * * @param contextModule * @returns this */ withContextModule(contextModule: ContextModule): this; /** * Provide the EVM-compatible address book used to clear-sign contact names. * * The snapshot must be complete: the signer neither mutates nor persists it, * and reads it as-is. Rebuild the signer to pick up later changes. * * @param addressBook a complete EVM address-book snapshot * @returns this */ withAddressBook(addressBook: EvmAddressBook): this; /** * Build the ethereum signer * * @returns the ethereum signer */ build(): DefaultSignerEth; } export {}; //# sourceMappingURL=SignerEthBuilder.d.ts.map