noderl/dist/main.d.ts

12 lines
397 B
TypeScript

/// <reference types="node" />
/// <reference types="node" />
import { Duplex } from "node:stream";
type WriteCallback = (error: Error | null | undefined) => void;
export declare class Port extends Duplex {
constructor();
read(): any;
write(obj: any, encodingOrCallback?: BufferEncoding | WriteCallback, callback?: WriteCallback | undefined): boolean;
_final(): void;
}
export {};