import * as z from "zod";
import * as components from "../components/index.js";
import { CloudinaryAssetMgmtError } from "./cloudinaryassetmgmterror.js";
export type ApiErrorData = {
    error: components.ApiErrorError;
};
export declare class ApiError extends CloudinaryAssetMgmtError {
    error: components.ApiErrorError;
    /** The original data that was passed to this error instance. */
    data$: ApiErrorData;
    constructor(err: ApiErrorData, httpMeta: {
        response: Response;
        request: Request;
        body: string;
    });
}
/** @internal */
export declare const ApiError$inboundSchema: z.ZodType<ApiError, z.ZodTypeDef, unknown>;
/** @internal */
export type ApiError$Outbound = {
    error: components.ApiErrorError$Outbound;
};
/** @internal */
export declare const ApiError$outboundSchema: z.ZodType<ApiError$Outbound, z.ZodTypeDef, ApiError>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ApiError$ {
    /** @deprecated use `ApiError$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ApiError, z.ZodTypeDef, unknown>;
    /** @deprecated use `ApiError$outboundSchema` instead. */
    const outboundSchema: z.ZodType<ApiError$Outbound, z.ZodTypeDef, ApiError>;
    /** @deprecated use `ApiError$Outbound` instead. */
    type Outbound = ApiError$Outbound;
}
//# sourceMappingURL=apierror.d.ts.map