import type { SyntaxNode } from '../types.js'; /** * Calculate cognitive complexity of a function * * Based on SonarSource's Cognitive Complexity specification: * - +1 for each break from linear flow (if, for, while, catch, etc.) * - +1 for each nesting level when inside a control structure * - +1 for each logical operator sequence break (a && b || c) * * @see https://www.sonarsource.com/docs/CognitiveComplexity.pdf * * @param node - AST node to analyze (typically a function/method) * @returns Cognitive complexity score (minimum 0) */ export declare function calculateCognitiveComplexity(node: SyntaxNode): number; //# sourceMappingURL=cognitive.d.ts.map