/**
 * Extract stage: Parse execution events into an ordered step sequence.
 *
 * Supports four patterns:
 * 1a. callLLM → callDbTool/callVisionTool (Insight/agentic paired calls)
 * 1b. callLLM → callMcpTool (mcpQuery with qualified names)
 * 2.  mcp_* activities (direct external tool calls via proxyActivities)
 * 3.  callLLM (interpretation) — final LLM text response
 */
import type { WorkflowExecutionEvent } from '../../../types';
import type { ExtractedStep, PipelineContext } from '../types';
/**
 * Extract the ordered step sequence from an execution's events.
 */
export declare function extractStepSequence(events: WorkflowExecutionEvent[]): ExtractedStep[];
/**
 * Resolve slugified server IDs (e.g., "my_server") back to
 * real MCP server names (e.g., "my-server").
 */
export declare function resolveServerIds(steps: ExtractedStep[]): Promise<void>;
/**
 * Extract pipeline stage: parse execution events into ordered steps.
 */
export declare function extract(ctx: PipelineContext): Promise<PipelineContext>;
