/// import { BindingPortInterface } from '.'; import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@serialport/bindings-interface'; export interface WindowsOpenOptions extends OpenOptions { /** Device parity defaults to none */ parity?: 'none' | 'even' | 'odd' | 'mark' | 'space'; /** RTS mode defaults to handshake */ rtsMode?: 'handshake' | 'enable' | 'toggle'; } export type WindowsBindingInterface = BindingInterface; export declare const WindowsBinding: WindowsBindingInterface; /** * The Windows binding layer */ export declare class WindowsPortBinding implements BindingPortInterface { fd: null | number; writeOperation: Promise | null; openOptions: Required; constructor(fd: number, options: Required); get isOpen(): boolean; close(): Promise; read(buffer: Buffer, offset: number, length: number): Promise<{ buffer: Buffer; bytesRead: number; }>; write(buffer: Buffer): Promise; update(options: UpdateOptions): Promise; set(options: SetOptions): Promise; get(): Promise; getBaudRate(): Promise<{ baudRate: number; }>; flush(): Promise; drain(): Promise; }