import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type ErrorStreamingEventData = {
    error: string;
    code: string;
};
/**
 * Emitted when a streaming error occurs outside of normal agent execution. Contains the error message and error code for debugging.
 */
export type ErrorStreamingEvent = {
    type: "agents.error";
    /**
     * ISO timestamp of the event
     */
    timestamp: string;
    data: ErrorStreamingEventData;
};
/** @internal */
export declare const ErrorStreamingEventData$inboundSchema: z.ZodType<ErrorStreamingEventData, z.ZodTypeDef, unknown>;
export declare function errorStreamingEventDataFromJSON(jsonString: string): SafeParseResult<ErrorStreamingEventData, SDKValidationError>;
/** @internal */
export declare const ErrorStreamingEvent$inboundSchema: z.ZodType<ErrorStreamingEvent, z.ZodTypeDef, unknown>;
export declare function errorStreamingEventFromJSON(jsonString: string): SafeParseResult<ErrorStreamingEvent, SDKValidationError>;
//# sourceMappingURL=errorstreamingevent.d.ts.map