/** * @fileoverview Async Waterfall Detection Check * * Detects sequential await statements that could potentially be parallelized * with Promise.all(). Uses AST-aware heuristics: * - Looks for consecutive lines with await expressions * - Flags when the second await doesn't reference the variable from the first * - Skips awaits in different conditional branches (if/else, ternary, switch) * - Recognizes dynamic import destructuring dependencies * - Skips mutex/lock acquire-then-execute patterns * - Skips sleep/delay in polling loops */ /** * Check: quality/async-waterfall-detection * * Detects sequential await statements that could potentially be parallelized. * Uses AST-aware heuristics including: * - Consecutive await detection within a configurable line gap * - Variable dependency tracking (simple names and destructured bindings) * - Conditional branch awareness (if/else, ternary, switch/case) * - Dynamic import recognition * - Mutex/lock acquire pattern exclusion * - Sleep/delay pattern exclusion */ export declare const asyncWaterfallDetection: import("@opensip-cli/fitness").Check; //# sourceMappingURL=async-waterfall-detection.d.ts.map