/**
 * 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<DetectionRule>;
export declare function loadRulesFromDirectory(dirPath: string): Promise<DetectionRule[]>;
export declare function createRule(config: Omit<DetectionRule, "enabled"> & {
    enabled?: boolean;
}): DetectionRule;
//# sourceMappingURL=loader.d.ts.map