import * as z from "zod"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Errors */ export type Errors = {}; /** * Unprocessable Entity */ export type ErrorT = { /** * Error message */ message?: string | undefined; /** * Error code */ code?: number | undefined; /** * Error name */ status?: string | undefined; /** * Errors */ errors?: Errors | undefined; }; /** @internal */ export declare const Errors$inboundSchema: z.ZodType; /** @internal */ export type Errors$Outbound = {}; /** @internal */ export declare const Errors$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Errors$ { /** @deprecated use `Errors$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Errors$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Errors$Outbound` instead. */ type Outbound = Errors$Outbound; } export declare function errorsToJSON(errors: Errors): string; export declare function errorsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ErrorT$inboundSchema: z.ZodType; /** @internal */ export type ErrorT$Outbound = { message?: string | undefined; code?: number | undefined; status?: string | undefined; errors?: Errors$Outbound | undefined; }; /** @internal */ export declare const ErrorT$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ErrorT$ { /** @deprecated use `ErrorT$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ErrorT$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ErrorT$Outbound` instead. */ type Outbound = ErrorT$Outbound; } export declare function errorToJSON(errorT: ErrorT): string; export declare function errorFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=error.d.ts.map