export interface SummaryRecoveryResult { /** Always true — the recovery was attempted (caller decides when to call). */ attempted: boolean; /** True only when set-summary exited 0 (sidecar present + schema-valid). */ ok: boolean; /** Captured stderr for debug logging. */ stderr: string; } export interface RecoverPhaseSummaryParams { /** Absolute path to the project's store-cli.cjs. */ storeCli: string; /** Task or bug record id whose summary is being registered. */ entityId: string; /** Canonical `summaries.*` store key (e.g. "plan", "code_review"). */ summaryKey: string; cwd: string; /** "set-summary" (task, default) or "set-bug-summary" (bug). */ summaryVerb?: "set-summary" | "set-bug-summary"; } /** * Attempt to register a phase's already-written {PHASE}-SUMMARY.json sidecar * into the store via store-cli. Returns ok=true only when the verb exits 0. */ export declare function recoverPhaseSummary(p: RecoverPhaseSummaryParams): SummaryRecoveryResult;