import { DataStream } from "../core/DataStream"; import { CoreDeviceType, DeviceConfig } from "../types/Devices.types"; export declare class Device { id: string; _ondata: (data: any, timestamps?: any, name?: string) => (any[] | { [x: string | number]: any; }); constraints: DeviceConfig; device: CoreDeviceType; stream?: DataStream; encoder: TextEncoder | any; decoder: TextDecoder | any; active: boolean; options: DeviceConfig[]; debug: boolean; constructor(constraints: DeviceConfig | DeviceConfig[]); init: (constraints?: Partial | undefined) => void; connect: () => Promise; disconnect: () => Promise; _connect: () => Promise; _disconnect: () => Promise; send: (msg: any, from: any) => Promise; encode: (msg: any, _: string) => any; decode: (msg: any, _: string) => any; oninit: (_?: Device) => Promise; onconnect: (target?: Device) => Promise; ondisconnect: (target?: Device) => Promise; onsend: (msg?: any, from?: any) => Promise; onerror: (err: Error) => Promise; ondata: (data: any, timestamps?: any, charName?: string | undefined) => void; private _createTrack; }