/**
 * Represents a node in a dependency graph
 */
export interface DependencyNode {
    name: string;
    dependencies: string[];
}
/**
 * Detects circular dependencies in a dependency graph using depth-first search.
 * Throws an error if a circular dependency is found.
 *
 * @param dependencies - Array of nodes with their dependencies
 * @param errorPrefix - Prefix for the error message (e.g., "table calculations", "metrics")
 * @throws Error if a circular dependency is detected, with the full cycle path
 *
 * @example
 * ```typescript
 * const dependencies = [
 *   { name: 'A', dependencies: ['B'] },
 *   { name: 'B', dependencies: ['C'] },
 *   { name: 'C', dependencies: ['A'] } // Creates a cycle: A -> B -> C -> A
 * ];
 * detectCircularDependencies(dependencies, 'table calculations');
 * // Throws: "Circular dependency detected in table calculations: A -> B -> C -> A"
 * ```
 */
export declare function detectCircularDependencies(dependencies: DependencyNode[], errorPrefix?: string): void;
//# sourceMappingURL=dependencyGraph.d.ts.map