import { AxiosError } from 'axios';

export type NiceAxiosError = AxiosError<{
  errorCode?: string;
  code?: string;
  message?: string;
  data?: any;
  status?: string;
}>;

export interface NiceAxiosFallbackProps {
  error: NiceAxiosError;
  resetErrorBoundary?: (...args: unknown[]) => void;
}