/** * Package Validator * * Validates that package.json dependencies match the project.json build.dependsOn * This ensures the two sources of truth don't drift apart. */ /** * Validation result for a single project */ export interface ProjectValidationResult { project: string; valid: boolean; missingInPackageJson: string[]; extraInPackageJson: string[]; } /** * Overall validation result */ export interface ValidationResult { valid: boolean; errors: string[]; projectResults: ProjectValidationResult[]; } /** * Validate that package.json dependencies match the dependency graph * * For each project in the graph: * - Check that all graph dependencies exist in package.json * - Maps project names to package names for accurate comparison * * @param graph - Enhanced graph with project dependencies (uses project names) * @param workspaceRoot - Absolute path to workspace root * @returns Validation result with errors if any */ interface GraphEntry { level: number; dependsOn: string[]; } export declare function validatePackageJsonDependencies(graph: Record, workspaceRoot: string): Promise; export {};