import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { DataPart } from "./datapart.js";
import { ErrorPart } from "./errorpart.js";
import { FilePart } from "./filepart.js";
import { TextPart } from "./textpart.js";
import { ToolCallPart } from "./toolcallpart.js";
import { ToolResultPart } from "./toolresultpart.js";
export declare const AgentMessageCreatedStreamingEventRole: {
    readonly User: "user";
    readonly Tool: "tool";
};
export type AgentMessageCreatedStreamingEventRole = ClosedEnum<typeof AgentMessageCreatedStreamingEventRole>;
export type AgentMessageCreatedStreamingEventParts = TextPart | ErrorPart | DataPart | FilePart | ToolCallPart | ToolResultPart;
export type Message = {
    messageId?: string | undefined;
    role: AgentMessageCreatedStreamingEventRole;
    parts: Array<TextPart | ErrorPart | DataPart | FilePart | ToolCallPart | ToolResultPart>;
    metadata?: {
        [k: string]: any;
    } | undefined;
};
export type AgentMessageCreatedStreamingEventData = {
    workflowRunId: string;
    spanId: string;
    parentId: string;
    message: Array<Message>;
};
/**
 * Emitted when a new message is added to the conversation. Contains the message content, workflow run ID, and span context for tracing.
 */
export type AgentMessageCreatedStreamingEvent = {
    type: "event.agents.message-created";
    /**
     * ISO timestamp of the event
     */
    timestamp: string;
    data: AgentMessageCreatedStreamingEventData;
};
/** @internal */
export declare const AgentMessageCreatedStreamingEventRole$inboundSchema: z.ZodNativeEnum<typeof AgentMessageCreatedStreamingEventRole>;
/** @internal */
export declare const AgentMessageCreatedStreamingEventParts$inboundSchema: z.ZodType<AgentMessageCreatedStreamingEventParts, z.ZodTypeDef, unknown>;
export declare function agentMessageCreatedStreamingEventPartsFromJSON(jsonString: string): SafeParseResult<AgentMessageCreatedStreamingEventParts, SDKValidationError>;
/** @internal */
export declare const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
export declare function messageFromJSON(jsonString: string): SafeParseResult<Message, SDKValidationError>;
/** @internal */
export declare const AgentMessageCreatedStreamingEventData$inboundSchema: z.ZodType<AgentMessageCreatedStreamingEventData, z.ZodTypeDef, unknown>;
export declare function agentMessageCreatedStreamingEventDataFromJSON(jsonString: string): SafeParseResult<AgentMessageCreatedStreamingEventData, SDKValidationError>;
/** @internal */
export declare const AgentMessageCreatedStreamingEvent$inboundSchema: z.ZodType<AgentMessageCreatedStreamingEvent, z.ZodTypeDef, unknown>;
export declare function agentMessageCreatedStreamingEventFromJSON(jsonString: string): SafeParseResult<AgentMessageCreatedStreamingEvent, SDKValidationError>;
//# sourceMappingURL=agentmessagecreatedstreamingevent.d.ts.map