export interface AthenaFetchError { code?: string | null; error?: { message?: string | null; status?: number; code?: string | null; } | string | null; errorDetails?: { message?: string | null; status?: number; code?: string | null; } | null; message?: string; status?: number; } export declare const suppressGlobalErrorToastMeta: { readonly suppressGlobalErrorToast: true; }; /** Spread into package-owned `useMutation` options that present errors locally. */ export declare const localMutationErrorPresentation: { readonly meta: { readonly suppressGlobalErrorToast: true; }; }; type ErrorMetaSource = { meta?: unknown; options?: { meta?: unknown; } | null; } | null | undefined; /** * Normalize any auth error into the stable {@link AuthErrorView} presentation model. * * @param error - The error to normalize * @returns The normalized error */ export declare function getAuthErrorView(error: unknown): import('../../types/errors.js').AuthErrorView; /** * Human-readable, presentation-safe message from an auth error envelope. * Prefer {@link getAuthErrorView} when code / retryable / field matter. * * @param error - The error to get the message from * @returns The message from the error */ export declare function getAuthErrorMessage(error: AthenaFetchError | unknown): string; export type { AuthErrorView } from '../../types/errors.js'; /** * Check if the error has the suppressGlobalErrorToast meta. * * @param source - The source of the error * @returns Whether the error has the suppressGlobalErrorToast meta */ export declare function hasSuppressGlobalErrorToastMeta(source: ErrorMetaSource): boolean;