import type { RuntimeTaskWorkspaceInfoResponse, RuntimeWorktreeDeleteResponse, RuntimeWorktreeEnsureResponse } from "../core/api-contract.js";
type CreateSymlink = (target: string, path: string, type: "dir" | "file") => Promise<void>;
export declare function mirrorIgnoredPath(options: {
    sourcePath: string;
    targetPath: string;
    isDirectory: boolean;
    createSymlink?: CreateSymlink;
}): Promise<"mirrored" | "skipped">;
export declare function ensureTaskWorktreeIfDoesntExist(options: {
    cwd: string;
    taskId: string;
    baseRef: string;
}): Promise<RuntimeWorktreeEnsureResponse>;
export declare function deleteTaskWorktree(options: {
    repoPath: string;
    taskId: string;
}): Promise<RuntimeWorktreeDeleteResponse>;
export declare function resolveTaskCwd(options: {
    cwd: string;
    taskId: string;
    baseRef: string;
    ensure?: boolean;
}): Promise<string>;
export declare function getTaskWorkspacePathInfo(options: {
    cwd: string;
    taskId: string;
    baseRef: string;
}): Promise<Pick<RuntimeTaskWorkspaceInfoResponse, "taskId" | "path" | "exists" | "baseRef">>;
export declare function getTaskWorkspaceInfo(options: {
    cwd: string;
    taskId: string;
    baseRef: string;
}): Promise<RuntimeTaskWorkspaceInfoResponse>;
export {};
//# sourceMappingURL=task-worktree.d.ts.map