ISO2022JPDecoder.d.ts 826 B

12345678910111213141516171819202122232425
  1. import { Stream } from "../../common/Stream";
  2. export declare class ISO2022JPDecoder {
  3. readonly fatal: boolean;
  4. iso2022jp_decoder_state: any;
  5. iso2022jp_decoder_output_state: any;
  6. iso2022jp_lead: number;
  7. iso2022jp_output_flag: boolean;
  8. /**
  9. * @constructor
  10. * @implements {Decoder}
  11. * @param {{fatal: boolean}} options
  12. */
  13. constructor(options: {
  14. fatal: boolean;
  15. });
  16. /**
  17. * @param {Stream} stream The stream of bytes being decoded.
  18. * @param {number} bite The next byte read from the stream.
  19. * @return {?(number|!Array.<number>)} The next code point(s)
  20. * decoded, or null if not enough data exists in the input
  21. * stream to decode a complete code point.
  22. */
  23. handler(stream: Stream, bite: number): (number | Array<number>) | null;
  24. }