import { TypeGuardFn } from "guardz"; import { AxiosError, AxiosResponse } from "axios"; import { NetworkError, TimeoutError, CancelError, ResponseError, ClientErrorStatus, ServerErrorStatus } from "../types/axios-types"; /** * Type guard for basic AxiosError structure */ export declare const isAxiosError: TypeGuardFn; /** * Type guard for AxiosError with response (4xx/5xx errors) */ export declare const isAxiosErrorWithResponse: TypeGuardFn; /** * Type guard for network errors (no response received) */ export declare const isNetworkError: TypeGuardFn; /** * Type guard for timeout errors */ export declare const isTimeoutError: TypeGuardFn; /** * Type guard for cancel errors */ export declare const isCancelError: TypeGuardFn; /** * Type guard for client errors (4xx status codes) */ export declare const isClientError: TypeGuardFn; /** * Type guard for server errors (5xx status codes) */ export declare const isServerError: TypeGuardFn; /** * Type guard for authentication errors (401 Unauthorized) */ export declare const isAuthenticationError: TypeGuardFn; /** * Type guard for authorization errors (403 Forbidden) */ export declare const isAuthorizationError: TypeGuardFn; /** * Type guard for not found errors (404 Not Found) */ export declare const isNotFoundError: TypeGuardFn; /** * Type guard for validation errors (422 Unprocessable Entity) */ export declare const isValidationError: TypeGuardFn; /** * Type guard for rate limit errors (429 Too Many Requests) */ export declare const isRateLimitError: TypeGuardFn; /** * Type guard for specific error status code */ export declare function isErrorWithStatus(statusCode: T): TypeGuardFn; /** * Type guard for specific error code */ export declare function isErrorWithCode(errorCode: T): TypeGuardFn; /** * Comprehensive error categorization function */ export declare function categorizeAxiosError(error: unknown): { isAxiosError: boolean; category: "network" | "timeout" | "cancel" | "client" | "server" | "unknown"; statusCode?: number; errorCode?: string; hasResponse: boolean; }; //# sourceMappingURL=axios-error-guards.d.ts.map