import type { AxiosInstance } from 'axios';
export type AuthErrorHandling = 'toast' | 'redirect' | 'none';
export type ApplyAuthErrorHandlingOptions = {
    authErrorHandling?: AuthErrorHandling;
    authStatuses?: Array<401 | 403>;
    redirect?: {
        on401?: string;
        on403?: string;
    };
    onBeforeRedirect?: (status: 401 | 403) => void;
    skipAuthHandlingInStorybook?: boolean;
};
export declare function applyAuthErrorHandling(api: AxiosInstance, options: ApplyAuthErrorHandlingOptions): AxiosInstance;
