import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent"; import { type ContextMode } from "./config.js"; export interface ParsedRun { target: string; args: string[]; contextMode?: ContextMode; verbose: boolean; debug: boolean; judge?: string; } interface ParsedPlan { request: string; name?: string; change?: string; update?: boolean; debug: boolean; } export declare function splitArguments(input: string): string[]; export declare function parseRun(input: string): ParsedRun; export declare function parsePlan(input: string): ParsedPlan; /** * After a step that leaves the tree dirty, offer to commit it (or remind the user). * A clean tree is what lets the next /dc-apply take a rollback snapshot. */ export declare function offerCommit(pi: ExtensionAPI, ctx: ExtensionContext, action: string, change: string): Promise; /** * Ask the user a DeepClause question. * * Pi's interactive text-input dialog renders only its title: the placeholder * argument is ignored by `ExtensionInputComponent`. Passing the question as the * placeholder (as the extension used to) made it invisible, so put the whole * question in the title and label which run is asking. */ export declare function requestDeepClauseInput(ctx: Pick, label: string, prompt: string, signal: AbortSignal): Promise; export default function deepClauseExtension(pi: ExtensionAPI): void; export {};