import { AgentMergeFeedbackComment, AgentMergePromptContext, AgentMergeRepairAction, AgentMergeReviewThreadContext } from "./agentMerge.js"; /** Structured view of a prompt produced by {@link buildAgentMergePrompt}. */ export interface IAgentMergePromptSummary { readonly actions: readonly AgentMergeRepairAction[]; readonly pullRequestUrl: string; readonly title: string; readonly headRef: string; readonly headSha: string; readonly baseRef: string; readonly reviewThreads: readonly AgentMergeReviewThreadContext[]; readonly reviewSummaries: readonly AgentMergeFeedbackComment[]; readonly newComments: readonly AgentMergeFeedbackComment[]; readonly failedChecks: readonly string[]; readonly behind: boolean; readonly conflicting: boolean; /** The instructions that follow the state block, addressed to the agent. */ readonly agentMessage: string; } export declare const AGENT_MERGE_TOOL_NAMES: readonly string[]; export declare function buildAgentMergePrompt(actions: readonly AgentMergeRepairAction[], context: AgentMergePromptContext): string; /** * Recovers the structured state from an Agent Merge prompt so it can be shown * as a summary widget instead of the raw machine-facing text. Returns * `undefined` for any message that is not such a prompt. */ export declare function parseAgentMergePrompt(text: string): IAgentMergePromptSummary | undefined;