import type { CentralTaskRecord } from './centralStateRepository.js'; /** The central ledger and worker use the same ownership boundary. */ export interface CentralWorktreeOwnership { readonly branch: string; readonly worktreePath: string; readonly metadataDirectory: string; } export declare class CentralWorktreeOwnershipError extends Error { readonly code = "CENTRAL_WORKTREE_OWNERSHIP_INVALID"; } /** * Resolve and verify a task worktree without following a user-controlled * symlink. Callers must treat a failure as terminal; a missing or mismatched * worktree must never silently turn into a newly-created clone. */ export declare function assertCentralWorktreeOwnership(projectDirectory: string, globalConfigDirectory: string, stateId: string, task: Pick): CentralWorktreeOwnership; //# sourceMappingURL=centralWorktreeOwnership.d.ts.map