/** * Finalizes an issue by checking the done gate and persisting the result. * * Orchestrates the done-gate decision: parses acceptance criteria from the * issue markdown and the verifier's checklist from the verifier text, decides * whether the issue is done, flips checkboxes if done, and persists the * lifecycle status to state.json. */ import type { FsPort } from "../ports/fs.ts"; import type { Verdict } from "../domain/verdict.ts"; import type { DoneDecision } from "../domain/done-gate.ts"; export interface FinalizeIssueDeps { fs: FsPort; } export interface FinalizeIssueOpts { issuePath: string; diabloDir: string; issue: string; verdict: Verdict; verifierText: string; } export declare function finalizeIssue(deps: FinalizeIssueDeps, opts: FinalizeIssueOpts): Promise;