import type { Workspace } from '../../pm/index.ts';
export interface CycleEdge {
    from: string;
    to: string;
    type: 'dep' | 'devDep';
}
/**
 * Detects cycles in the workspace dependency graph (including devDependencies).
 * This catches cycles that break `yarn workspaces foreach --topological-dev`
 * but are invisible to source-level import analysis.
 * @returns An array of cycle paths, each represented as an array of edges. Empty if no cycles.
 */
export declare function detectWorkspaceCycles(workspaces: Workspace[]): CycleEdge[][];
export declare function printWorkspaceCycles(cycles: CycleEdge[][]): void;
//# sourceMappingURL=workspaceCycles.d.ts.map