import { Localization } from './localization.js';
/** Read both Better Fetch error bodies and client-side error codes. */
export declare function getAuthErrorCode(error: unknown): string | undefined;
/** Prefer API messages and codes, with localized fallbacks for client failures. */
export declare function getAuthErrorMessage(error: unknown, localization: Localization, mutationKey?: readonly unknown[]): string | null;
