import type { NormalizedRule, ValidationError } from '../types/index.js'; import type { MarkdocSchema } from '../parser/markdoc/schema.js'; export interface LoadResult { success: boolean; rules: NormalizedRule[]; errors: ValidationError[]; configPath?: string; /** * Opt-in Markdoc tokenization and its resolved schema, threaded from * `validate()`'s own `markdoc` field. The CLI's `runCommand` reads this * `LoadResult` rather than a `RecheckConfig`, so without these two fields the * `recheck/markdoc-*` rules are unreachable from a real `recheck.yaml` even * with `markdoc: true` set. Both default to the disabled shape (`false` / * `null`) on every early-return error path below. */ markdoc: boolean; markdocSchema: MarkdocSchema | null; /** Absolute path to the baseline file, when the config sets `baseline`. */ baselinePath?: string; } /** * Loads and validates a recheck configuration file */ export declare function loadConfig(configPath: string): Promise; /** * Finds a recheck configuration file in the current directory or parent directories */ export declare function findConfigFile(startDir?: string): Promise; /** * Loads configuration with automatic discovery */ export declare function findAndLoadConfig(configPath?: string): Promise; //# sourceMappingURL=load.d.ts.map