/** * Spawn plan resolution SSOT — main lead-dev plan vs active user aside. * Extracted to avoid circular imports between user-aside and lead-dev-plan-persistence. */ import { type PersistedLeadDevPlan } from './lead-dev-plan-persistence.js'; export interface SpawnPlanResolution { source: 'main' | 'aside' | 'none'; asideId?: string; plan: PersistedLeadDevPlan | null; worktree?: string; branch?: string; } export interface SpawnPlanToolInput { planTodoId?: string; prompt?: string; description?: string; task?: string; } export declare function resolveSpawnPlan(toolInput: SpawnPlanToolInput, projectRoot?: string, sessionId?: string | null): SpawnPlanResolution; export declare function hasValidSpawnPlanContext(projectRoot?: string, sessionId?: string | null): boolean;