/** * Detection Rule Loader * * Loads and validates detection rules from YAML files or inline definitions. * * @module scanners/detection/rules/loader */ import type { DetectionRule } from "../types.js"; export declare class RuleValidationError extends Error { ruleId: string; field: string; constructor(ruleId: string, field: string, message: string); } export declare function loadRuleFromYAML(filePath: string): Promise; export declare function loadRulesFromDirectory(dirPath: string): Promise; export declare function createRule(config: Omit & { enabled?: boolean; }): DetectionRule; //# sourceMappingURL=loader.d.ts.map