export interface WorktreeCreation {
    /** Absolute path of the new worktree. */
    path: string;
    /** Local branch checked out in the worktree. */
    branch: string;
    /** Ref the branch was created from (e.g. `origin/master`); equals `branch`
     *  when an existing local branch was checked out instead. */
    baseRef: string;
}
/**
 * Create a linked worktree for `repoPath`, as a sibling of the repo's MAIN
 * checkout (a linked-worktree input is resolved back to the main one first).
 *
 * - No `branch` given → auto-pick `wt/N` (first free N), dir `<repo>-wt-N`.
 * - `branch` given and exists locally → check it out into the worktree.
 * - `branch` given and exists remotely → create a local tracking branch from it.
 * - `branch` given and new → create it from the remote default branch.
 *
 * The base ref is fetched first so the worktree starts from the remote's
 * latest state; fetch failure degrades to the local (possibly stale) ref.
 */
export declare function createRepoWorktree(repoPath: string, opts?: {
    branch?: string;
}): Promise<WorktreeCreation>;
//# sourceMappingURL=git-worktree.d.ts.map