import type { ExtensionContext } from "@earendil-works/pi-coding-agent"; /** * Result of the commit message confirmation loop. * * - `commit`: proceed with the original message * - `edit`: proceed with an edited version * - `cancel`: abort the entire commit flow */ export type MessageAction = { action: "commit"; } | { action: "edit"; message: string; } | { action: "cancel"; }; /** * Present the generated commit message to the user and let them * confirm, edit, or cancel. * * **dryRun mode**: shows the message via `ctx.ui.notify` and returns * `{ action: "commit" }` immediately (pipeline will skip actual commit). * * **TUI mode**: sets a widget with the message lines, then opens a * select dialog with Y/N/Edit choices. * * **Non-TUI mode**: notifies the message and returns `{ action: "commit" }` * (no interactive confirmation possible). * * @param ctx - Extension context (used for UI interactions) * @param message - The proposed commit message * @param widgetId - Widget identifier (different per command, e.g. "pi-git-commit") * @param dryRun - When true, only display without interactive confirmation */ export declare function confirmCommitMessage(ctx: ExtensionContext, message: string, widgetId: string, dryRun?: boolean): Promise; //# sourceMappingURL=confirmation.d.ts.map