import type Database from 'better-sqlite3'; import type { SpawnResult } from '../models/validation'; /** * Check whether a spawn operation is legal. * * Requirements: * - Sprint must be IN EXECUTION (ERR-SPAWN-SPRINT) * - Task must exist in the specified sprint (ERR-TASK-NOTFOUND) * - Task must be To Do or In Progress (ERR-SPAWN-STATE) * - Role must match the required stage role (ERR-SPAWN-ROLE) * * @param db - Database connection (read-only) * @param sprintId - Sprint ID * @param taskId - Task ID to spawn from * @param stage - The spawn stage (e.g. "analyst", "architect", "coder", "tester") * @param role - The role that will own the spawned task * @returns Spawn legality result */ export declare function checkSpawnLegality(db: Database.Database, sprintId: string, taskId: string, stage: string, role: string): SpawnResult; //# sourceMappingURL=spawn-legality.d.ts.map