import type { CompletionConfig, CompletionMethod } from "./types"; /** * Result of checking whether a step's completion condition is met. */ export interface CompletionCheckResult { complete: boolean; verdict?: "approve" | "reject"; artifacts?: Record; /** Concise summary of step output for context threading */ summary?: string; reason?: string; } /** * Context provided to completion checkers. */ export interface CompletionContext { /** Last assistant message text (from message.part.updated tracking) */ lastAssistantMessage?: string; /** Last user message text (for user_confirm) */ lastUserMessage?: string; /** Working directory */ directory: string; /** Completion config from the step definition */ config: CompletionConfig; /** Current artifacts in the instance */ artifacts: Record; } /** * Check whether a step's completion condition is met. */ export declare function checkStepCompletion(method: CompletionMethod, context: CompletionContext): CompletionCheckResult;