import { createAgentSession, createBashTool, type ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { Goal } from "./goal-contract.ts"; export interface GoalAuditorResult { approved: boolean; output: string; model?: string; error?: string; } export declare function parseAuditorDecision(output: string): boolean; export declare function buildGoalAuditorPrompt(goal: Goal, completionSummary: string, bashAvailable?: boolean, snapshotPath?: string): string; export declare function createReadOnlyAuditorBash(cwd: string): ReturnType | null; export declare function runGoalCompletionAuditor(args: { ctx: ExtensionContext; goal: Goal; completionSummary: string; signal?: AbortSignal; createSession?: typeof createAgentSession; }): Promise;