import type { LintDiagnostic, RuleContext, RuleDefinition } from '../../types'; /** * AST-based: detect variables first assigned inside a loop body that are referenced * after the loop ends. BrightScript is function-scoped so the variable is technically * accessible, but relying on it is fragile when the loop may not execute. * * Only checks FunctionDeclaration scopes. FunctionExpression scopes (anonymous functions) * cannot capture outer-function variables due to BrightScript's no-closures semantics. */ export declare function checkLoopVariableLeakAst(ctx: RuleContext): LintDiagnostic[]; export declare const descriptor: RuleDefinition; //# sourceMappingURL=loopVariableLeak.d.ts.map