import type Transport from '@ledgerhq/hw-transport';
import { type ProviderConnectResult } from '@rango-dev/wallets-shared';
export type Provider = Map<string, unknown>;
export declare function ledger(): Provider | null;
export declare function getLedgerError(error: any): any;
export declare function standardizeAndThrowLedgerError(_: unknown, error: unknown): void;
export declare function getEthereumAccounts(): Promise<ProviderConnectResult>;
export declare function getSolanaAccounts(): Promise<ProviderConnectResult>;
export declare function transportConnect(): Promise<Transport>;
export declare function transportDisconnect(): Promise<void>;
