import type { TFunction } from '../hooks/useTranslationSafe'; /** * Turns a fetch failure into a message an end user can actually act on, instead of * a raw "API Error: 403 Forbidden" (or whatever the network layer happened to throw). * Only `ApiError` (thrown by the kit's own `createFetcher`) carries a real HTTP status * to branch on — a custom `fetcher` can throw anything, so unrecognized shapes still * fall back to the original generic `error` message (interpolating `.message`) rather * than guessing. */ export declare function getFriendlyErrorMessage(error: Error, t: TFunction): string; //# sourceMappingURL=errorMessages.d.ts.map