import { Signer } from 'ethers'; import { Provider } from '@ethersproject/providers'; import { CHAIN_ID } from '../constant'; export declare enum SignerType { ENV = "env", LEDGER = "ledger" } export interface ISignerManager { getWallet(name: string): Signer; getHdWallet(name: string, hdPathOrIndex: string | number): Signer; } export declare class EnvSignerManager { chainId: CHAIN_ID; provider: Provider; constructor(chainId: CHAIN_ID, provider?: Provider); getWallet(name: string): Signer; getHdWallet(name: string, hdPathOrIndex: string | number): Signer; } export declare class LedgerSignerManager { provider: Provider; static cachedLedgerSigners: Map; constructor(chainId: CHAIN_ID, provider?: Provider); getWallet(name: string): Signer; getHdWallet(name: string, hdPathOrIndex: string | number): Signer; getLedgerWallet(customPath: string): Signer; private fromCache; } export declare function getSignerManager(chainId: CHAIN_ID, type: SignerType, provider?: Provider): ISignerManager; //# sourceMappingURL=signerManager.d.ts.map