import type { BusEvent } from './types.js'; /** How many times one (scope, path) failure may refuse a completion. */ export declare const MAX_REFUSALS = 2; export interface FailedWrite { role: string; path: string; reason: string; /** "refused" for a policy/sandbox denial, else "failed". */ kind: 'refused' | 'failed'; } export declare class WriteLedger { private bases; private pending; private failed; private refusals; /** @param bases directories a relative path may have been written against. */ constructor(bases: () => string[]); private abs; observe(e: BusEvent): void; private fail; /** Failed writes with no later success whose file is still missing/empty. */ unresolved(role?: string): FailedWrite[]; private landed; /** Writes to refuse a completion over: unresolved, not acknowledged in * `report`, and still under the refusal cap. Counts the refusal. */ private due; /** org_task_done by `role`: a refusal message, or null to allow. */ checkTaskDone(role: string, result: string | undefined): string | null; /** An `achieved` org_complete: a refusal message, or null to allow. */ checkRunAchieved(summary: string): string | null; } //# sourceMappingURL=write-ledger.d.ts.map