import { ErrorCallback, SerialPortStream, StreamOptions } from '@serialport/stream'; import { AutoDetectTypes, OpenOptionsFromBinding } from '@serialport/bindings-cpp'; export type SerialPortOpenOptions = Omit, 'binding'> & OpenOptionsFromBinding; export declare class SerialPort extends SerialPortStream { static list: () => Promise; static readonly binding: AutoDetectTypes; constructor(options: SerialPortOpenOptions, openCallback?: ErrorCallback); }