WritableStream.d.ts 556 B

123456789101112131415
  1. import { type Handler, type ParserOptions } from "./Parser.js";
  2. import { Writable } from "node:stream";
  3. /**
  4. * WritableStream makes the `Parser` interface available as a NodeJS stream.
  5. *
  6. * @see Parser
  7. */
  8. export declare class WritableStream extends Writable {
  9. private readonly _parser;
  10. private readonly _decoder;
  11. constructor(cbs: Partial<Handler>, options?: ParserOptions);
  12. _write(chunk: string | Buffer, encoding: string, callback: () => void): void;
  13. _final(callback: () => void): void;
  14. }
  15. //# sourceMappingURL=WritableStream.d.ts.map