import { type AutoDetectTypes, type OpenOptionsFromBinding, type SetOptions } from "@serialport/bindings-cpp"; import { type ErrorCallback, SerialPortStream, type StreamOptions } from "@serialport/stream"; 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<{ cts: boolean; dsr: boolean; dcd: boolean; }>; asyncSet(options: SetOptions): Promise; } //# sourceMappingURL=serialPort.d.ts.map