import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { ApideckError } from "./apideckerror.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
/**
 * Contains parameter or domain specific information related to the error and why it occurred.
 */
export type Detail = string | {
    [k: string]: any;
};
/**
 * Bad Request
 */
export type BadRequestResponseData = {
    /**
     * HTTP status code
     */
    statusCode?: number | undefined;
    /**
     * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
     */
    error?: string | undefined;
    /**
     * The type of error returned
     */
    typeName?: string | undefined;
    /**
     * A human-readable message providing more details about the error.
     */
    message?: string | undefined;
    /**
     * Contains parameter or domain specific information related to the error and why it occurred.
     */
    detail?: string | {
        [k: string]: any;
    } | undefined;
    /**
     * Link to documentation of error type
     */
    ref?: string | undefined;
};
/**
 * Bad Request
 */
export declare class BadRequestResponse extends ApideckError {
    /**
     * HTTP status code
     */
    statusCode?: number | undefined;
    /**
     * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
     */
    error?: string | undefined;
    /**
     * The type of error returned
     */
    typeName?: string | undefined;
    /**
     * Contains parameter or domain specific information related to the error and why it occurred.
     */
    detail?: string | {
        [k: string]: any;
    } | undefined;
    /**
     * Link to documentation of error type
     */
    ref?: string | undefined;
    /** The original data that was passed to this error instance. */
    data$: BadRequestResponseData;
    constructor(err: BadRequestResponseData, httpMeta: {
        response: Response;
        request: Request;
        body: string;
    });
}
/** @internal */
export declare const Detail$inboundSchema: z.ZodType<Detail, z.ZodTypeDef, unknown>;
export declare function detailFromJSON(jsonString: string): SafeParseResult<Detail, SDKValidationError>;
/** @internal */
export declare const BadRequestResponse$inboundSchema: z.ZodType<BadRequestResponse, z.ZodTypeDef, unknown>;
//# sourceMappingURL=badrequestresponse.d.ts.map