/** * Resolve a caught error to a localized, user-facing message. * * Capture the active translator at call site (run this in `setup()`, before * any `await`), then use the returned async resolver. Lookup order: * * 1. **Field-level validup `issues`** (a validation failure) — translated * via `@ilingo/validup`'s `translateIssues` (the same machinery that * renders inline form-field errors), so the toast is both localized and * field-specific instead of a generic "bad request" line. * 2. **Top-level `code`** — resolved against the `authupError` namespace * (e.g. `permission_denied`, `entity_conflict`). * 3. **Raw server message** — last resort for non-HTTP / uncoded errors. */ export declare function useErrorTranslator(): (error: unknown) => Promise; //# sourceMappingURL=error.d.ts.map