index.d.ts 474 B

12345678910111213141516171819
  1. /// <reference types="node" />
  2. import { EventEmitter } from 'events';
  3. export declare class Composer extends EventEmitter {
  4. private buf;
  5. private headbuf;
  6. private headoffset;
  7. private state;
  8. private dataoffset;
  9. private buffoffset;
  10. private end;
  11. private length;
  12. private left;
  13. private hugePackMode;
  14. private hugePackModeFinished;
  15. private hugeBuf;
  16. constructor();
  17. feed(data: Buffer): void;
  18. compose(data: string): Buffer;
  19. }