import type { SpawnMode } from "../../packages/agent-spawn/dist/index.js"; import type { CommandRunner } from "../utils/command-checks.js"; import type { FileSystem } from "../utils/file-system.js"; export interface SpawnWorkspaceResolution { cwd?: string; cleanup?: () => Promise; } export declare function resolveSpawnWorkspace(candidate: string | undefined, options: { baseDir: string; homeDir: string; mode?: SpawnMode; resolveRemoteLocators?: boolean; fs: Pick; exec: CommandRunner; }): Promise;