import { BufferError, InvalidInputError, ParseError, UniqueIdError } from "../errors.mjs"; //#region src/ksuid/ksuid.d.ts type KsuidOptions = { /** * 16 bytes of random data to use for KSUID payload. */ random?: Uint8Array; /** * Timestamp in seconds since Unix epoch. * Defaults to Math.floor(Date.now() / 1000). * KSUID natively uses second precision. */ secs?: number; }; type Ksuid = { (): string; (options: KsuidOptions | undefined, buf: TBuf, offset?: number): TBuf; (options?: KsuidOptions, 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 KSUID (all zeros) */ NIL: string; /** The max KSUID (maximum valid value) */ MAX: string; }; /** * Generate a KSUID string or write the bytes into a buffer. * Also includes helpers to convert to and from byte arrays. */ declare const ksuid: Ksuid; //#endregion export { BufferError, InvalidInputError, Ksuid, KsuidOptions, ParseError, UniqueIdError, ksuid }; //# sourceMappingURL=ksuid.d.mts.map