UNPKG

@trezor/connect

Version:

High-level javascript interface for Trezor hardware wallet.

34 lines 1.15 kB
import EventEmitter from 'events'; import { Blockchain } from '../../backend/BlockchainLink'; import { PROTO } from '../../constants'; import { DeviceCommands } from '../../device/DeviceCommands'; import type { CoinInfo, DiscoveryAccount, DiscoveryAccountType } from '../../types'; import type { GetAccountInfo } from '../../types/api/getAccountInfo'; type DiscoveryType = { type: DiscoveryAccountType; getPath: (index: number) => number[]; }; type DiscoveryOptions = { blockchain: Blockchain; commands: DeviceCommands; limit?: number; derivationType?: PROTO.CardanoDerivationType; }; export declare class Discovery extends EventEmitter { types: DiscoveryType[]; typeIndex: number; accounts: DiscoveryAccount[]; coinInfo: CoinInfo; blockchain: Blockchain; commands: DeviceCommands; index: number; interrupted: boolean; completed: boolean; derivationType?: PROTO.CardanoDerivationType; constructor(options: DiscoveryOptions); start(details?: GetAccountInfo['details']): Promise<void>; stop(): void; dispose(): void; } export {}; //# sourceMappingURL=Discovery.d.ts.map