import { type RunWorktree } from "./fix-all-git.js"; import type { FixAllLaunchRequest, FixAllRunner } from "./fix-all-runner.js"; export interface FixAllLaunchDeps { /** `~/.gg/worktrees`. */ readonly worktreesRoot: string; readonly createWorktree: (from: string, worktreesRoot: string, now: Date) => Promise; /** Undo a worktree made for a launch that then failed. */ readonly discardWorktree: (from: string, made: RunWorktree) => Promise; /** A code session in `cwd`, and its Fix all runner (null when it has none). */ readonly openSession: (cwd: string) => Promise<{ id: string; runner: FixAllRunner | null; }>; /** Keep it working with no window; false when it wasn't kept. */ readonly detach: (id: string) => boolean; readonly close: (id: string) => Promise; /** The runner that owns the repository's run now, if any. */ readonly live: (key: string) => FixAllRunner | null; readonly exists: (dir: string) => boolean; readonly log: (level: "INFO" | "WARN", message: string, data?: Record) => void; readonly now?: () => Date; } export declare function createFixAllLauncher(deps: FixAllLaunchDeps): (request: FixAllLaunchRequest) => Promise;