import { ValidationRule, ValidationContext, ValidationSeverity } from '../interfaces'; /** * Rule that detects unreachable code * * Detects code that can never be executed: * - Statements after return/throw/break/continue */ export declare class UnreachableCodeRule implements ValidationRule { readonly name = "unreachable-code"; readonly description = "Detects unreachable code that can never be executed"; readonly defaultSeverity = ValidationSeverity.WARNING; readonly enabledByDefault = true; validate(context: ValidationContext): void; /** * Check if a statement always terminates control flow */ private isTerminalStatement; }