import { type Rule } from './schema.js'; /** * Root directory containing the bundled rule YAML files. * When the package is published, the rules/ folder ships next to dist/. * In development, we walk up to the package root. */ export declare const RULES_ROOT: string; export interface LoadedRule { rule: Rule; sourceFile: string; } /** * Recursively load every rule shipped with this package. * Throws a descriptive error if any rule fails schema validation — * we'd rather fail loud at import time than silently ship a broken rule. */ export declare function loadAllRules(root?: string): Promise; /** * Build a manifest summarising every shipped rule. * Useful for the CLI's `oauthlint list` command and for the docs site. */ export declare function buildManifest(root?: string): Promise<{ id: string; severity: "INFO" | "WARNING" | "ERROR"; languages: string[]; oauthlintId: string; docUrl: string; llmPrevalence: "HIGH" | "MEDIUM" | "LOW"; cwe: string; owasp: string | undefined; description: string; sourceFile: string; }[]>; export type RuleManifestEntry = Awaited>[number]; //# sourceMappingURL=loader.d.ts.map