import type { AxiosInstance } from 'axios'; export type AuthErrorHandling = 'toast' | 'redirect' | 'none'; export type ApplyAuthErrorHandlingOptions = { authErrorHandling?: AuthErrorHandling; /** HTTP statuses that trigger auth handling. Defaults to [401, 403]. */ authStatuses?: Array<401 | 403>; redirect?: { on401?: string; on403?: string; }; onBeforeRedirect?: (status: 401 | 403) => void; skipAuthHandlingInStorybook?: boolean; }; /** Opt-in 401/403 handling per app. Not part of the shared 5xx dispatchError path. */ export declare function applyAuthErrorHandling(api: AxiosInstance, options: ApplyAuthErrorHandlingOptions): AxiosInstance;