import { TypeGuardFn } from "guardz"; import { AxiosResponse } from "axios"; import { AxiosResponseGuarded, SuccessStatus, RedirectStatus, ClientErrorStatus, ServerErrorStatus } from "../types/axios-types"; /** * Type guard for basic AxiosResponse structure */ export declare const isAxiosResponse: TypeGuardFn; /** * Creates a type guard for AxiosResponse with specific data type validation */ export declare function isAxiosResponseWithData(dataGuard: TypeGuardFn): TypeGuardFn>; /** * Type guard for successful HTTP response (2xx status codes) */ export declare const isSuccessResponse: TypeGuardFn; /** * Creates a type guard for successful response with specific data type */ export declare function isSuccessResponseWithData(dataGuard: TypeGuardFn): TypeGuardFn & { status: SuccessStatus; }>; /** * Type guard for redirect response (3xx status codes) */ export declare const isRedirectResponse: TypeGuardFn; /** * Type guard for client error response (4xx status codes) */ export declare const isClientErrorResponse: TypeGuardFn; /** * Type guard for server error response (5xx status codes) */ export declare const isServerErrorResponse: TypeGuardFn; /** * Type guard for specific status code */ export declare function isResponseWithStatus(statusCode: T): TypeGuardFn; /** * Type guard for response with specific content type */ export declare function isResponseWithContentType(contentType: string): TypeGuardFn; /** * Type guard for JSON response */ export declare const isJsonResponse: TypeGuardFn; /** * Type guard for empty response (204 No Content) */ export declare const isEmptyResponse: TypeGuardFn; /** * Type guard for created response (201 Created) */ export declare const isCreatedResponse: TypeGuardFn; /** * Creates a type guard for created response with specific data type */ export declare function isCreatedResponseWithData(dataGuard: TypeGuardFn): TypeGuardFn & { status: 201; }>; //# sourceMappingURL=axios-response-guards.d.ts.map