export type TxEdit = { issue: string; op: 'patch'; ac?: string; patch: Record; } | { issue: string; op: 'set-state'; state: string; } | { issue: string; op: 'set-body'; body: string; }; export type TxPlan = { edits: Array<{ issue: string; op: string; detail: string; }>; base: Record; }; export type TxResult = { committed: boolean; plan: TxPlan; errorsBefore: number; errorsAfter: number; newFindings: Array<{ code: string; issue?: string; message: string; }>; reverted: boolean; }; export declare function planTx(edits: TxEdit[]): Promise; export declare function applyTx(edits: TxEdit[], options: { projectRoot: string; base?: Record; }): Promise;