export interface WorktreeConfig { readonly repoRoot: string; readonly worktreeRoot: string; readonly branchName: string; /** * Override for the worktree directory name. When omitted, the branch name * is sanitized (slashes → dashes, non-`[A-Za-z0-9._-]` stripped). Use this * when you need a stable, content-meaningful path — e.g. nested-repo * worktrees that should live at `///`. */ readonly worktreeName?: string; } export declare function createWorktree(config: WorktreeConfig): string; export declare function removeWorktree(repoRoot: string, worktreePath: string): void; export declare function listWorktrees(repoRoot: string): readonly string[]; /** Resolve an on-disk path to its canonical (real, symlink-resolved) form. */ export declare function canonicalWorktreePath(targetPath: string): string; /** True if `candidate` is a strict descendant of `rootDir`. */ export declare function isWithinDir(rootDir: string, candidate: string): boolean; /** Read the branch currently checked out at the given worktree path. */ export declare function getWorktreeBranch(worktreePath: string): string; //# sourceMappingURL=worktree.d.ts.map