_assert.d.ts 701 B

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