import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKError } from "./sdkerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type ErrorT = { message: string; details?: any | null | undefined; }; export type ErrorEnvelopeData = { error: ErrorT; }; export declare class ErrorEnvelope extends SDKError { error: ErrorT; /** The original data that was passed to this error instance. */ data$: ErrorEnvelopeData; constructor(err: ErrorEnvelopeData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const ErrorT$inboundSchema: z.ZodType; /** @internal */ export type ErrorT$Outbound = { message: string; details?: any | null | undefined; }; /** @internal */ export declare const ErrorT$outboundSchema: z.ZodType; export declare function errorToJSON(errorT: ErrorT): string; export declare function errorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ErrorEnvelope$inboundSchema: z.ZodType; /** @internal */ export type ErrorEnvelope$Outbound = { error: ErrorT$Outbound; }; /** @internal */ export declare const ErrorEnvelope$outboundSchema: z.ZodType; //# sourceMappingURL=errorenvelope.d.ts.map