import type { BytesView } from "@zwave-js/shared";
import { type ZWaveSerialBindingFactory, type ZWaveSerialStream } from "../serialport/ZWaveSerialStream.js";
export declare class MockPort {
    #private;
    constructor();
    /** How long each write operation should take */
    writeDelay: number;
    lastWrite: BytesView | undefined;
    /** Exposes the data written by the host as a readable stream */
    readonly readable: ReadableStream<BytesView>;
    factory(): ZWaveSerialBindingFactory;
    emitData(data: BytesView): void;
    destroy(): void;
}
export declare function createAndOpenMockedZWaveSerialPort(): Promise<{
    port: MockPort;
    serial: ZWaveSerialStream;
}>;
//# sourceMappingURL=MockPort.d.ts.map