_assert.d.ts 797 B

123456789101112131415161718192021222324
  1. declare function number(n: number): void;
  2. declare function bool(b: boolean): void;
  3. export declare function isBytes(a: unknown): a is Uint8Array;
  4. declare function bytes(b: Uint8Array | undefined, ...lengths: number[]): void;
  5. type Hash = {
  6. (data: Uint8Array): Uint8Array;
  7. blockLen: number;
  8. outputLen: number;
  9. create: any;
  10. };
  11. declare function hash(h: Hash): void;
  12. declare function exists(instance: any, checkFinished?: boolean): void;
  13. declare function output(out: any, instance: any): void;
  14. export { number, bool, bytes, hash, exists, output };
  15. declare const assert: {
  16. number: typeof number;
  17. bool: typeof bool;
  18. bytes: typeof bytes;
  19. hash: typeof hash;
  20. exists: typeof exists;
  21. output: typeof output;
  22. };
  23. export default assert;
  24. //# sourceMappingURL=_assert.d.ts.map