import type { AxiosResponseHeaders, RawAxiosResponseHeaders } from 'axios'; import type { TFunction } from 'i18next'; import type { ServerErrorContext } from '../../common/AppToast/ToastMessage'; type DispatchApiErrorOptions = { err: unknown; t?: TFunction; key?: string; autoClose?: boolean; }; export declare function extractRequestId(headers?: RawAxiosResponseHeaders | AxiosResponseHeaders): string | undefined; export declare function buildClientErrorContext(err: unknown): ServerErrorContext; export declare function dispatchApiError({ err, t, key, autoClose, }: DispatchApiErrorOptions): void; /** Persistent 5xx toast that opens the server-error report modal on click. */ export declare function dispatchServerApiError({ err, t, }: { err: unknown; t?: TFunction; }): void; /** Persistent toast for unexpected client/runtime errors; opens report modal on click. */ export declare function dispatchClientError({ err, t, }: { err: unknown; t?: TFunction; }): void; /** Toast for 401/403 — access denied, not a reportable client crash. */ export declare function dispatchAccessDeniedError(): void; export {};