export interface DiscoveredDevice { variant: string; serial: string; } export declare class PicoError extends Error { constructor(message: string); } export declare type CallbackFn = (data: Map) => void; export declare class PicoDevice { private readonly devicePtr; private callback?; static enumerate(downloadMissingDrivers?: boolean): Promise; static open(serial?: string, downloadMissingDrivers?: boolean): Promise; private constructor(); get variant(): string; get serial(): string; close(): void; getChannelRanges(channel: string): string[]; enableChannel(channel: string, range: string, coupling?: string): void; disableChannel(channel: string): void; setCallback(callback: CallbackFn): void; startStreaming(samplesPerSecond: number): Promise; stopStreaming(): void; private static throwError; private static readString; private callbackHandler; }