SshDecoder.d.ts 731 B

1234567891011121314151617181920
  1. import { JsonPackMpint } from '../JsonPackMpint';
  2. import type { IReader, IReaderResettable } from '@jsonjoy.com/buffers/lib';
  3. import type { BinaryJsonDecoder } from '../types';
  4. export declare class SshDecoder<R extends IReader & IReaderResettable = IReader & IReaderResettable> implements BinaryJsonDecoder {
  5. reader: R;
  6. constructor(reader?: R);
  7. read(uint8: Uint8Array): unknown;
  8. decode(uint8: Uint8Array): unknown;
  9. readAny(): unknown;
  10. readBoolean(): boolean;
  11. readByte(): number;
  12. readUint32(): number;
  13. readUint64(): bigint;
  14. readBinStr(): Uint8Array;
  15. readStr(): string;
  16. readAsciiStr(): string;
  17. readMpint(): JsonPackMpint;
  18. readNameList(): string[];
  19. readBin(): Uint8Array;
  20. }