import * as z from "zod"; import { Result as SafeParseResult } from "../../../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type Location = { file: string; row: number; col: number; }; export type Errors = { code: string; message: string; location?: Location | undefined; }; /** * Bad Request */ export type ClientErrorData = { code: string; message: string; errors?: Array | undefined; }; /** * Bad Request */ export declare class ClientError extends Error { code: string; errors?: Array | undefined; /** The original data that was passed to this error instance. */ data$: ClientErrorData; constructor(err: ClientErrorData); } /** @internal */ export declare const Location$inboundSchema: z.ZodType; /** @internal */ export type Location$Outbound = { file: string; row: number; col: number; }; /** @internal */ export declare const Location$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 Location$ { /** @deprecated use `Location$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Location$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Location$Outbound` instead. */ type Outbound = Location$Outbound; } export declare function locationToJSON(location: Location): string; export declare function locationFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Errors$inboundSchema: z.ZodType; /** @internal */ export type Errors$Outbound = { code: string; message: string; location?: Location$Outbound | undefined; }; /** @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 ClientError$inboundSchema: z.ZodType; /** @internal */ export type ClientError$Outbound = { code: string; message: string; errors?: Array | undefined; }; /** @internal */ export declare const ClientError$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 ClientError$ { /** @deprecated use `ClientError$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ClientError$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ClientError$Outbound` instead. */ type Outbound = ClientError$Outbound; } //# sourceMappingURL=clienterror.d.ts.map