/** * Unified lookup result shape — mirrors {@link ValidationResult} ok/code/message contract * without document-specific success fields (e.g. `format`). * @see docs/LIBRARY-API.md — Lookup list getters */ type LookupErrorCode = 'NOT_FOUND' | 'INVALID_FORMAT' | 'INVALID_INPUT'; type LookupResult = { ok: true; value: T; } | { ok: false; code: LookupErrorCode; message: string; }; declare function lookupFound(value: T): LookupResult; declare function lookupNotFound(message: string): LookupResult; declare function lookupInvalidInput(message: string): LookupResult; declare function lookupInvalidFormat(message: string): LookupResult; /** Unwrap v1.x `get*PorCodigo` compatibility — returns `undefined` on any failure. */ declare function unwrapLookupValue(result: LookupResult): T | undefined; declare function isLookupNotFound(result: LookupResult): result is { ok: false; code: 'NOT_FOUND'; message: string; }; export { type LookupErrorCode as L, type LookupResult as a, lookupInvalidFormat as b, lookupInvalidInput as c, lookupNotFound as d, isLookupNotFound as i, lookupFound as l, unwrapLookupValue as u };