import { ExecutionEnvironmentStore } from './store.js'; import { type ExecutionEnvironment } from './types.js'; export interface ProvisionManagedWorktreeInput { projectId: string; repositoryPath: string; baseRef?: string; environmentId?: string; } export interface LocalWorktreeInspection { healthy: boolean; registered: boolean; rootExists: boolean; dirty: boolean; headSha?: string; branchRef?: string; locked: boolean; problems: string[]; } export interface LocalWorktreeManagerOptions { store?: ExecutionEnvironmentStore; stateDir?: string; } export declare class LocalWorktreeManager { private readonly store; private readonly stateDir?; constructor(options?: LocalWorktreeManagerOptions); registerLocalCheckout(input: { projectId?: string; workspacePath: string; environmentId?: string; }): Promise; provisionManagedWorktree(input: ProvisionManagedWorktreeInput): Promise; inspect(environmentId: string): Promise; reconcile(environmentId: string): Promise; remove(environmentId: string, options?: { releaseSessionKey: string; }): Promise; private cleanupFailedProvision; }