/** * Shared lease-store reader for the two sweep-style commands (`list`, `gc`). * * Both enumerate the session's lease directory through the pure * `listLeasesSync` helper with the same real-fs bindings, and both render * the same `Malformed lease: ()` warning line per unreadable * file. Extracted verbatim from `worktree-lease-commands.ts`. */ import { type LeaseListResult } from '../../services/worktree/worktree-lease.js'; export interface LeaseStoreSnapshot { storeDir: string; result: LeaseListResult; } export declare function loadLeaseStore(projectRoot: string, sessionId: string): LeaseStoreSnapshot; /** One warning line per malformed lease file skipped by the store reader. */ export declare function malformedLeaseWarnings(errors: ReadonlyArray<{ file: string; error: string; }>): string[];