//#region src/typeid.d.ts /** * Minimal, dependency-free TypeID generator for local request IDs. * * Replaces the external `typeid-js` package (and its transitive `uuid` * dependency) with an inline implementation. We only ever mint new IDs with a * fixed prefix, so this covers generation — not parsing or decoding. * * The suffix is the 26-character Crockford base32 encoding of a UUIDv7 * (RFC 9562), matching the TypeID specification * (https://github.com/jetify-com/typeid). Mirrors the vendored implementation * in the Arcjet Python SDK so both SDKs produce identical IDs. */ /** Crockford base32 alphabet (lowercase, excludes `i`, `l`, `o`, `u`). */ export declare const CROCKFORD_ALPHABET = "0123456789abcdefghjkmnpqrstvwxyz"; /** * Generate the 16 raw bytes of a UUIDv7 (RFC 9562): a 48-bit big-endian * millisecond timestamp, version `7`, the RFC 4122 variant (`10`), and random * bits filling the remainder. * * `nowMs` and `random` are injectable for deterministic testing; production * callers use the defaults. * * @throws {RangeError} * If `nowMs` is not an integer in the 48-bit range `[0, 2 ** 48)`, or if * `random` is not exactly 10 bytes. Both would otherwise silently produce a * malformed ID (a wrapped timestamp or zero-filled entropy). */ export declare function uuidV7Bytes(nowMs?: number, random?: Uint8Array): Uint8Array; /** * Generate a new TypeID string — `_`, where the suffix is the * Crockford base32 encoding of a freshly generated UUIDv7. * * `nowMs` and `random` are injectable for deterministic testing. */ export declare function typeid(prefix: string, nowMs?: number, random?: Uint8Array): string; //#endregion