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); asyncOpen(): Promise; asyncClose(): Promise; asyncFlush(): Promise; asyncFlushAndClose(): Promise; asyncGet(): Promise; } //# sourceMappingURL=serialPort.d.ts.map