import * as z from "zod"; import { Result as SafeParseResult } from "../../../types/fp.js"; import * as errors from "../errors/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ServerError = { code: string; message: string; errors?: Array | undefined; decisionId?: string | undefined; }; /** @internal */ export declare const ServerError$inboundSchema: z.ZodType; /** @internal */ export type ServerError$Outbound = { code: string; message: string; errors?: Array | undefined; decision_id?: string | undefined; }; /** @internal */ export declare const ServerError$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 ServerError$ { /** @deprecated use `ServerError$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ServerError$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ServerError$Outbound` instead. */ type Outbound = ServerError$Outbound; } export declare function serverErrorToJSON(serverError: ServerError): string; export declare function serverErrorFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=servererror.d.ts.map