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<void>;
}
export declare function resolveSpawnWorkspace(candidate: string | undefined, options: {
    baseDir: string;
    homeDir: string;
    mode?: SpawnMode;
    resolveRemoteLocators?: boolean;
    fs: Pick<FileSystem, "mkdir" | "stat" | "lstat" | "rm">;
    exec: CommandRunner;
}): Promise<SpawnWorkspaceResolution>;
