import { TrajectoryStep } from '../../types/index.js';
import { AGUIEvent } from '../../types/agui.js';
export declare class AGUIToTrajectoryConverter {
    private currentTextMessage;
    private activeTools;
    private hasEmittedAction;
    private runFinished;
    private pendingTextIsResponse;
    private runId;
    private threadId;
    private isThinking;
    private currentThinkingMessage;
    /**
     * Process a single AG UI event and convert it to TrajectoryStep(s)
     * Returns an array of steps (usually 0 or 1, sometimes more)
     */
    processEvent(event: AGUIEvent): TrajectoryStep[];
    private handleRunStarted;
    getRunId(): string | null;
    getThreadId(): string | null;
    private handleRunFinished;
    private handleRunError;
    private handleTextMessageStart;
    private handleTextMessageContent;
    private handleTextMessageEnd;
    private handleActivitySnapshot;
    private handleActivityDelta;
    private handleToolCallStart;
    private handleToolCallArgs;
    /**
     * Handle TOOL_CALL_END - emits the action step with complete args
     * This is called when the agent is done sending tool call arguments
     * and expects the client to execute the tool
     */
    private handleToolCallEnd;
    private handleToolCallResult;
    private handleThinkingStart;
    private handleThinkingEnd;
    private handleThinkingTextMessageStart;
    private handleThinkingTextMessageContent;
    private handleThinkingTextMessageEnd;
    private extractToolName;
    private parseToolArgs;
}
/**
 * Compute trajectory from raw AG-UI events
 * Use this to derive trajectory on-demand instead of storing both
 */
export declare function computeTrajectoryFromRawEvents(rawEvents: AGUIEvent[]): TrajectoryStep[];
//# sourceMappingURL=aguiConverter.d.ts.map