import { Observable } from "rxjs"; import Transport from "@ledgerhq/hw-transport"; import { OpenOptions } from "."; export declare const setErrorRemapping: (f: (arg0: Error) => Observable) => void; export declare const cancelDeviceAction: (transport: Transport) => void; /** * Provides a Transport instance to a given job * * @param deviceId * @param options contains optional configuration * - openTimeoutMs: optional timeout that limits in time the open attempt of the matching registered transport. * - matchDeviceByName: optional name of the device to match. */ export declare const withDevice: (deviceId: string, options?: OpenOptions) => (job: (t: Transport) => Observable) => Observable; /** * Provides a Transport instance to the given function fn * @see withDevice */ export declare const withDevicePromise: (deviceId: string, fn: (Transport: any) => Promise) => Promise; export declare const genericCanRetryOnError: (err: unknown) => boolean; export declare const retryWhileErrors: (acceptError: (arg0: Error) => boolean) => (attempts: Observable) => Observable; export declare const withDevicePolling: (deviceId: string) => (job: (arg0: Transport) => Observable, acceptError?: (arg0: Error) => boolean) => Observable; //# sourceMappingURL=deviceAccess.d.ts.map