import { Address, ProviderConnectInfo } from 'viem'; import { checkError, isHIDSupported } from './helpers'; import { LedgerHQProvider } from './provider'; import { ConnectorUpdate } from './types'; export { isHIDSupported, checkError }; type Options = { callback?: (...args: any[]) => void; path?: string; reset?: boolean; }; export type LedgerHidParameters = { shimDisconnect?: boolean; name?: string; icon?: string; onDeviceConnect?: () => Promise; onDeviceDisconnect?: () => Promise; }; export declare function ledgerHid(parameters?: LedgerHidParameters): import("wagmi").CreateConnectorFn; activate(id?: number, options?: Options): Promise>; deactivate(): Promise; getAccounts(path?: string): Promise; setAccount(path?: string): Promise; onConnect(params: { chainId: string; accounts: readonly Address[]; }): Promise; onLedgerAccountsChanged(params: { accounts: Address[]; }): Promise; onLedgerChainChanged(params: ProviderConnectInfo): Promise; provider?: LedgerHQProvider; chainId?: number; }, { [x: `${string}.disconnected`]: true; "ledger-hid.connected": true; }>; export declare namespace ledgerHid { var type: "hid"; } //# sourceMappingURL=index.d.ts.map