You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
548 B
TypeScript

import { ErrorCallback, OpenOptions, SerialPortStream } from '@serialport/stream';
import { MockBindingInterface } from '@serialport/binding-mock';
export declare type SerialPortMockOpenOptions = Omit<OpenOptions<MockBindingInterface>, 'binding'>;
export declare class SerialPortMock extends SerialPortStream<MockBindingInterface> {
static list: () => Promise<import("@serialport/bindings-cpp").PortInfo[]>;
static readonly binding: MockBindingInterface;
constructor(options: SerialPortMockOpenOptions, openCallback?: ErrorCallback);
}