import { type ResolvedConfig } from "../lib/config.ts"; import { type WorktreePreparation } from "../lib/taskSource.ts"; export interface TaskDetails { title: string; description: string; /** Direct web URL for the task; cached into RunState when present. */ url?: string; } export interface SetupWorkspaceOptions { task: string; /** Canonical source id for worker self-completion; falls back to `task`. */ completionTaskId?: string; /** Whether the task source can apply `crew task done`; defaults to true for direct calls. */ completionMarkDoneSupported?: boolean; repository: string; agent: string; /** Set to `skip` to bypass configured prepareWorktree hooks. */ worktreePreparation?: WorktreePreparation; details: TaskDetails; } export interface SetupWorkspaceRunOptions { signal?: AbortSignal; } export declare function setupWorkspace(config: ResolvedConfig, options: SetupWorkspaceOptions, runOptions?: SetupWorkspaceRunOptions): Promise; export declare function setupWorkspaceCli(task: string, options?: { dryRun?: boolean; }): Promise; //# sourceMappingURL=setupWorkspace.d.ts.map