type UUIDv7toUnsignedInteger = bigint | undefined; /** * @function uuidv7toUnsignedInteger * @description Converts a UUIDv7 string or Buffer to its unsigned integer representation. * * Validates the input as a UUID, checks that it is version 7, and then * returns a BigInt representing the complete 128-bit UUID value. If the input is not a valid * UUIDv7, returns `undefined`. * * @param {string | Buffer} uuid - The UUIDv7 as a string or Buffer. * @returns {bigint | undefined} The 128-bit unsigned integer representation of the UUIDv7, or `undefined` if invalid. * * @example * // Returns a BigInt * uuidv7toUnsignedInteger('018fd8f9-8c00-7a4c-8a47-1a6d4b90f3a1'); * // 2087074048307655244234234738893601n * * @example * // Returns undefined for invalid UUID * uuidv7toUnsignedInteger('not-a-uuid'); */ declare const uuidv7toUnsignedInteger: (uuid: string | Buffer) => UUIDv7toUnsignedInteger; export { type UUIDv7toUnsignedInteger, uuidv7toUnsignedInteger };