uuid.d.ts 630 B

12345678910111213141516171819202122
  1. /// <reference types="node" />
  2. export declare class UUID {
  3. private ascii;
  4. private readonly binary;
  5. private readonly version;
  6. static readonly OID: Buffer;
  7. constructor(uuid: Buffer | string);
  8. static v5(name: string | Buffer, namespace: Buffer): any;
  9. toString(): string;
  10. inspect(): string;
  11. static check(uuid: Buffer | string, offset?: number): false | {
  12. version: undefined;
  13. variant: string;
  14. format: string;
  15. } | {
  16. version: number;
  17. variant: string;
  18. format: string;
  19. };
  20. static parse(input: string): Buffer;
  21. }
  22. export declare const nil: UUID;