import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type TooManyRequestsResponseImsxCodeMinorField1 = {
    imsxCodeMinorFieldName?: "TargetEndSystem" | undefined;
    imsxCodeMinorFieldValue?: "server_busy" | undefined;
};
export type TooManyRequestsResponseImsxCodeMinor = {
    imsxCodeMinorField: Array<TooManyRequestsResponseImsxCodeMinorField1>;
};
export type TooManyRequestsResponseError1Data = {
    imsxCodeMajor: "failure";
    imsxSeverity: "error";
    imsxDescription: string;
    imsxCodeMinor: TooManyRequestsResponseImsxCodeMinor;
};
export declare class TooManyRequestsResponseError1 extends Error {
    imsxCodeMajor: "failure";
    imsxSeverity: "error";
    imsxDescription: string;
    imsxCodeMinor: TooManyRequestsResponseImsxCodeMinor;
    /** The original data that was passed to this error instance. */
    data$: TooManyRequestsResponseError1Data;
    constructor(err: TooManyRequestsResponseError1Data);
}
export type TooManyRequestsResponseError2Data = {
    imsxCodeMajor: "failure";
    imsxSeverity: "error";
    imsxDescription: string;
    imsxCodeMinor: TooManyRequestsResponseImsxCodeMinor;
};
export declare class TooManyRequestsResponseError2 extends Error {
    imsxCodeMajor: "failure";
    imsxSeverity: "error";
    imsxDescription: string;
    imsxCodeMinor: TooManyRequestsResponseImsxCodeMinor;
    /** The original data that was passed to this error instance. */
    data$: TooManyRequestsResponseError2Data;
    constructor(err: TooManyRequestsResponseError2Data);
}
/** @internal */
export declare const TooManyRequestsResponseImsxCodeMinorField1$inboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinorField1, z.ZodTypeDef, unknown>;
/** @internal */
export type TooManyRequestsResponseImsxCodeMinorField1$Outbound = {
    imsx_codeMinorFieldName: "TargetEndSystem";
    imsx_codeMinorFieldValue: "server_busy";
};
/** @internal */
export declare const TooManyRequestsResponseImsxCodeMinorField1$outboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinorField1$Outbound, z.ZodTypeDef, TooManyRequestsResponseImsxCodeMinorField1>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace TooManyRequestsResponseImsxCodeMinorField1$ {
    /** @deprecated use `TooManyRequestsResponseImsxCodeMinorField1$inboundSchema` instead. */
    const inboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinorField1, z.ZodTypeDef, unknown>;
    /** @deprecated use `TooManyRequestsResponseImsxCodeMinorField1$outboundSchema` instead. */
    const outboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinorField1$Outbound, z.ZodTypeDef, TooManyRequestsResponseImsxCodeMinorField1>;
    /** @deprecated use `TooManyRequestsResponseImsxCodeMinorField1$Outbound` instead. */
    type Outbound = TooManyRequestsResponseImsxCodeMinorField1$Outbound;
}
export declare function tooManyRequestsResponseImsxCodeMinorField1ToJSON(tooManyRequestsResponseImsxCodeMinorField1: TooManyRequestsResponseImsxCodeMinorField1): string;
export declare function tooManyRequestsResponseImsxCodeMinorField1FromJSON(jsonString: string): SafeParseResult<TooManyRequestsResponseImsxCodeMinorField1, SDKValidationError>;
/** @internal */
export declare const TooManyRequestsResponseImsxCodeMinor$inboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinor, z.ZodTypeDef, unknown>;
/** @internal */
export type TooManyRequestsResponseImsxCodeMinor$Outbound = {
    imsx_codeMinorField: Array<TooManyRequestsResponseImsxCodeMinorField1$Outbound>;
};
/** @internal */
export declare const TooManyRequestsResponseImsxCodeMinor$outboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinor$Outbound, z.ZodTypeDef, TooManyRequestsResponseImsxCodeMinor>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace TooManyRequestsResponseImsxCodeMinor$ {
    /** @deprecated use `TooManyRequestsResponseImsxCodeMinor$inboundSchema` instead. */
    const inboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinor, z.ZodTypeDef, unknown>;
    /** @deprecated use `TooManyRequestsResponseImsxCodeMinor$outboundSchema` instead. */
    const outboundSchema: z.ZodType<TooManyRequestsResponseImsxCodeMinor$Outbound, z.ZodTypeDef, TooManyRequestsResponseImsxCodeMinor>;
    /** @deprecated use `TooManyRequestsResponseImsxCodeMinor$Outbound` instead. */
    type Outbound = TooManyRequestsResponseImsxCodeMinor$Outbound;
}
export declare function tooManyRequestsResponseImsxCodeMinorToJSON(tooManyRequestsResponseImsxCodeMinor: TooManyRequestsResponseImsxCodeMinor): string;
export declare function tooManyRequestsResponseImsxCodeMinorFromJSON(jsonString: string): SafeParseResult<TooManyRequestsResponseImsxCodeMinor, SDKValidationError>;
/** @internal */
export declare const TooManyRequestsResponseError1$inboundSchema: z.ZodType<TooManyRequestsResponseError1, z.ZodTypeDef, unknown>;
/** @internal */
export type TooManyRequestsResponseError1$Outbound = {
    imsx_codeMajor: "failure";
    imsx_severity: "error";
    imsx_description: string;
    imsx_CodeMinor: TooManyRequestsResponseImsxCodeMinor$Outbound;
};
/** @internal */
export declare const TooManyRequestsResponseError1$outboundSchema: z.ZodType<TooManyRequestsResponseError1$Outbound, z.ZodTypeDef, TooManyRequestsResponseError1>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace TooManyRequestsResponseError1$ {
    /** @deprecated use `TooManyRequestsResponseError1$inboundSchema` instead. */
    const inboundSchema: z.ZodType<TooManyRequestsResponseError1, z.ZodTypeDef, unknown>;
    /** @deprecated use `TooManyRequestsResponseError1$outboundSchema` instead. */
    const outboundSchema: z.ZodType<TooManyRequestsResponseError1$Outbound, z.ZodTypeDef, TooManyRequestsResponseError1>;
    /** @deprecated use `TooManyRequestsResponseError1$Outbound` instead. */
    type Outbound = TooManyRequestsResponseError1$Outbound;
}
/** @internal */
export declare const TooManyRequestsResponseError2$inboundSchema: z.ZodType<TooManyRequestsResponseError2, z.ZodTypeDef, unknown>;
/** @internal */
export type TooManyRequestsResponseError2$Outbound = {
    imsx_codeMajor: "failure";
    imsx_severity: "error";
    imsx_description: string;
    imsx_CodeMinor: TooManyRequestsResponseImsxCodeMinor$Outbound;
};
/** @internal */
export declare const TooManyRequestsResponseError2$outboundSchema: z.ZodType<TooManyRequestsResponseError2$Outbound, z.ZodTypeDef, TooManyRequestsResponseError2>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace TooManyRequestsResponseError2$ {
    /** @deprecated use `TooManyRequestsResponseError2$inboundSchema` instead. */
    const inboundSchema: z.ZodType<TooManyRequestsResponseError2, z.ZodTypeDef, unknown>;
    /** @deprecated use `TooManyRequestsResponseError2$outboundSchema` instead. */
    const outboundSchema: z.ZodType<TooManyRequestsResponseError2$Outbound, z.ZodTypeDef, TooManyRequestsResponseError2>;
    /** @deprecated use `TooManyRequestsResponseError2$Outbound` instead. */
    type Outbound = TooManyRequestsResponseError2$Outbound;
}
//# sourceMappingURL=toomanyrequestsresponseerror1.d.ts.map