import type { Config } from '../config/schema'; import type { EventBus } from '../events/bus'; import type { EmitContext } from '../events/emit'; export type WorktreeInfo = { id: string; path: string; branch?: string; headSha?: string; isBare?: boolean; isLocked?: boolean; isDirty?: boolean; }; export declare function listWorktrees(options: { repoRoot: string; bus?: EventBus; context: EmitContext; includeStatus?: boolean; }): Promise; export declare function createWorktree(options: { repoRoot: string; name: string; config: Config; bus?: EventBus; context: EmitContext; }): Promise; export declare function removeWorktree(options: { repoRoot: string; path: string; force?: boolean; bus?: EventBus; context: EmitContext; }): Promise; export declare function getStatus(options: { worktreePath: string; bus?: EventBus; context: EmitContext; }): Promise<{ isDirty: boolean; porcelain: string; }>; export declare function pruneWorktrees(options: { repoRoot: string; bus?: EventBus; context: EmitContext; }): Promise; export declare function lockWorktree(options: { repoRoot: string; path: string; reason?: string; bus?: EventBus; context: EmitContext; }): Promise; export declare function unlockWorktree(options: { repoRoot: string; path: string; bus?: EventBus; context: EmitContext; }): Promise; export declare function rebaseOntoBase(options: { repoRoot: string; baseBranch: string; bus?: EventBus; context: EmitContext; }): Promise; export declare function hasUncommittedChanges(options: { worktreePath: string; bus?: EventBus; context: EmitContext; }): Promise; export declare function installDependencies(options: { worktreePath: string; }): Promise<{ ok: boolean; stdout: string; stderr: string; exitCode: number; }>; export declare function normalizeClaudeSettings(options: { worktreePath: string; }): Promise;