import { ValidationRule, ValidationContext, ValidationSeverity } from '../interfaces'; /** * Options for NoAsyncRule */ export interface NoAsyncOptions { /** Whether to allow async functions */ allowAsyncFunctions?: boolean; /** Whether to allow await expressions */ allowAwait?: boolean; /** Custom message */ message?: string; } /** * Rule that prevents usage of async/await * * Useful for synchronous-only execution environments. */ export declare class NoAsyncRule implements ValidationRule { private options; readonly name = "no-async"; readonly description = "Prevents usage of async/await constructs"; readonly defaultSeverity = ValidationSeverity.ERROR; readonly enabledByDefault = false; constructor(options?: NoAsyncOptions); validate(context: ValidationContext): void; }