/**
 * Worktree listing operations for @cleocode/worktree.
 *
 * `listWorktrees` and `listWorktreesByProjectRoot` scan the CLEO XDG worktrees
 * directory and use `@cleocode/worktree-napi` (`listWorktrees` →
 * `worktrunk_core::git_wt::list_worktrees`) to look up per-entry branch info
 * in a single Rust call — the prior N+1 `git rev-parse` loop is gone.
 *
 * Classification of each entry (status / stale / orphan / owningTask) stays in
 * TS because it consumes the tasks DB and other CLEO-specific state.
 *
 * @task T9982
 * @task T1161
 */
import type { ListWorktreesOptions, WorktreeListEntry } from '@cleocode/contracts';
/**
 * Resolve the worktree root directory for a given project hash.
 *
 * Exported so callers can inspect the canonical path without creating a worktree.
 *
 * @param projectHash - 16-char project hash.
 * @param worktreeRoot - Optional explicit override for the root path.
 * @returns Absolute path to the worktrees root directory for this project.
 */
export declare function resolveWorktreeRoot(projectHash: string, worktreeRoot?: string): string;
/**
 * List all active CLEO worktrees scoped to a specific project hash.
 *
 * Scans the XDG worktrees filesystem directory. Entries without a valid
 * worktree path on disk are omitted. Branch lookup is performed once per call
 * via `napi.listWorktrees` — no per-entry `git rev-parse` invocation.
 *
 * @param options - Listing options including optional project hash filter.
 * @returns Array of worktree entries.
 *
 * @task T9982
 */
export declare function listWorktrees(options?: ListWorktreesOptions): WorktreeListEntry[];
/**
 * List all active CLEO worktrees for a specific project root.
 *
 * Computes the project hash from the project root, then delegates to
 * {@link listWorktrees} with the computed hash as filter.
 *
 * @param projectRoot - Absolute path to the project root directory.
 * @returns Array of worktree list entries for this project.
 */
export declare function listWorktreesByProjectRoot(projectRoot: string): WorktreeListEntry[];
//# sourceMappingURL=worktree-list.d.ts.map