//#region src/errors.d.ts /** * Base error for all uniku errors. * Provides `_tag` for discriminated matching (compatible with Effect's `catchTag`) * and `code` for machine-readable error identification. */ declare abstract class UniqueIdError extends Error { abstract readonly _tag: string; abstract readonly code: string; constructor(message: string); } /** * Thrown when generator arguments are invalid (bad size, alphabet, length, timestamp, version). */ declare class InvalidInputError extends UniqueIdError { readonly code: string; readonly _tag: "InvalidInputError"; constructor(code: string, message: string); } /** * Thrown when parsing/decoding an ID string that has invalid format or characters. */ declare class ParseError extends UniqueIdError { readonly code: string; readonly _tag: "ParseError"; constructor(code: string, message: string); } /** * Thrown when a byte array or buffer is too short or an offset is out of bounds. */ declare class BufferError extends UniqueIdError { readonly code: string; readonly _tag: "BufferError"; constructor(code: string, message: string); } //#endregion export { BufferError, InvalidInputError, ParseError, UniqueIdError }; //# sourceMappingURL=errors.d.mts.map