WritableStream.d.ts 618 B

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