import { ByteVector } from "./byteVector"; /** * Wrapper around the UUID package to make it easier to handle UUIDs. */ export default class UuidWrapper { private static readonly GUID_REGEX; private readonly _bytes; /** * Constructs an instance using either the supplied UUID or generating a new, random one. * @param source If provided, it is used as the bytes of the instance. If a falsy value is * provided, a new v4 UUID will be generated. */ constructor(source?: ByteVector | string); /** * Determines whether this instance and another instance represent the same UUID. * @param b The other UUID to compare this one to. */ equals(b: UuidWrapper): boolean; /** * Gets the bytes that make up the UUID. */ toBytes(): ByteVector; /** * Gets a string representation of the UUID. */ toString(): string; }