/** * `aidlc claim` / `aidlc release`: instance claiming with a durable * session ledger (FR1.2). * * Claims live in the claim store — the git common dir when available * (git-worktree AC-1: visible from every worktree), instance.yaml * otherwise (AC-5, AC-27). The sessions.ndjson append is unchanged and * happens after the store write, so a failure between the two leaves * exactly the divergence `aidlc cost sync` detects and reports. * * Session identity (FR1.5/D4): AIDLC_SESSION_ID env override, then the * active-session stash with the strict single-candidate rule, then a * process-lifetime agent id (git-worktree design F2). */ import { Command } from 'commander'; import type { Claim } from '../concurrency/types.js'; /** * Exported as a test seam (the runDoctorPass precedent): the claim/renew/release * agent field is the whole point of cost-claim-attribution, and asserting on it * requires driving these without a subprocess. */ export declare function runClaim(instance: string, opts: { renew?: boolean; }): void; /** * Remove an instance's claim and log the release against the session that * held it. Returns the claim removed, or null when there was none. Throws when * the store or the ledger cannot be written. * * Shared by `aidlc release` and the completion moment * (completed-claim-left-behind/AC-1, AC-3), so the two cannot disagree on what a * release records. */ export declare function releaseClaim(root: string, instance: string): Claim | null; export declare function runRelease(instance: string): void; export declare function registerClaim(program: Command): void; //# sourceMappingURL=claim.d.ts.map