import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
/**
 * Error content part. Generated by the system when an error occurs during agent execution.
 */
export type ErrorPart = {
    kind: "error";
    error: string;
    code?: number | undefined;
};
/** @internal */
export declare const ErrorPart$inboundSchema: z.ZodType<ErrorPart, z.ZodTypeDef, unknown>;
/** @internal */
export type ErrorPart$Outbound = {
    kind: "error";
    error: string;
    code?: number | undefined;
};
/** @internal */
export declare const ErrorPart$outboundSchema: z.ZodType<ErrorPart$Outbound, z.ZodTypeDef, ErrorPart>;
export declare function errorPartToJSON(errorPart: ErrorPart): string;
export declare function errorPartFromJSON(jsonString: string): SafeParseResult<ErrorPart, SDKValidationError>;
//# sourceMappingURL=errorpart.d.ts.map