import type { ExtensionAPI, Theme } from "@earendil-works/pi-coding-agent"; import type { AgentStepContract, AgentStepPresentation, AgentStepSubmission } from "../workflows/types.js"; import { type PromptDeliveryKind } from "./executor.js"; export declare const WORKFLOW_AGENT_STEP_MESSAGE_TYPE = "pi-workflows-agent-step"; export declare const WORKFLOW_AGENT_STEP_MESSAGE_SCHEMA = "pi-workflows.agent-step-message.v1"; export type WorkflowAgentStepMessageDetails = { schema: typeof WORKFLOW_AGENT_STEP_MESSAGE_SCHEMA; kind: PromptDeliveryKind; contract: AgentStepContract; presentation?: AgentStepPresentation; turnIntentId?: string; }; type WorkflowAgentStepMessage = { content: unknown; details?: unknown; }; type WorkflowAgentStepView = { title: string; status?: string; expandedText?: string; }; export declare function registerWorkflowAgentStepMessageRenderer(pi: ExtensionAPI): void; /** Build renderer text without depending on Pi's session or TUI state. */ export declare function buildWorkflowAgentStepView(message: WorkflowAgentStepMessage, expanded: boolean, theme?: Pick): WorkflowAgentStepView; /** * Adopt an already visible response for the same assistant-output attempt. * This is used only when an interrupted run resumes in its origin session. */ export declare function recoverAssistantStep(entries: readonly unknown[], contract: AgentStepContract): AgentStepSubmission | undefined; export {};