export interface DagNode { id: string; name: string; status: string; dependsOn: string[]; } export interface RootMeta { version: string; projects: DagNode[]; } /** * Reads and parses the root meta.json. */ export declare function readRootMeta(dataDir: string): Promise; /** * Detect if adding an edge (from → to) would create a cycle. * Uses DFS from `to` to see if we can reach `from`. */ export declare function wouldCreateCycle(projects: DagNode[], fromId: string, toId: string): boolean; /** * Writes root meta.json under an advisory file lock. */ export declare function writeRootMeta(dataDir: string, rootMeta: RootMeta): Promise; /** * Validate that all dependency targets exist in the project list. */ export declare function validateDependencies(projects: DagNode[], dependsOn: string[]): string[]; //# sourceMappingURL=dag.d.ts.map