import { BufferError, InvalidInputError, ParseError, UniqueIdError } from "../errors.mjs"; //#region src/ulid/ulid.d.ts type UlidOptions = { /** * 16 bytes of random data to use for ULID generation. * Only the first 10 bytes are used. */ random?: Uint8Array; /** * Timestamp in milliseconds since Unix epoch. * Defaults to Date.now(). */ msecs?: number; }; type Ulid = { (): string; (options: UlidOptions | undefined, buf: TBuf, offset?: number): TBuf; (options?: UlidOptions, buf?: undefined, offset?: number): string; toBytes(id: string): Uint8Array; fromBytes(bytes: Uint8Array): string; timestamp(id: string): number; isValid(id: unknown): id is string; /** The nil ULID (all zeros) */ NIL: string; /** The max ULID (maximum valid value) */ MAX: string; }; declare const ulid: Ulid; //#endregion export { BufferError, InvalidInputError, ParseError, Ulid, UlidOptions, UniqueIdError, ulid }; //# sourceMappingURL=ulid.d.mts.map