/** * MRSF Discovery — resolve sidecar file paths per §3.3. * * Discovery order: * 1. Check for .mrsf.yaml at repo/workspace root → use sidecar_root if defined. * 2. Otherwise, co-located sidecar next to the Markdown file. */ import type { MrsfConfig } from "./types.js"; /** * Find the workspace / repo root by walking up from `startDir` looking for * `.mrsf.yaml` or `.git`. */ export declare function findWorkspaceRoot(startDir: string): string; /** * Load and validate .mrsf.yaml config. Returns null if not found. */ export declare function loadConfig(workspaceRoot: string, configPath?: string): Promise; /** * Given a Markdown document path (relative to workspace root), resolve the * sidecar file path according to §3.3 discovery order. * * Returns an absolute path to the sidecar. */ export declare function discoverSidecar(documentPath: string, options?: { cwd?: string; configPath?: string; }): Promise; /** * Given a sidecar file path, resolve the Markdown document path. * Strips .review.yaml or .review.json suffix. * Returns an absolute path to the document. */ export declare function sidecarToDocument(sidecarPath: string, options?: { cwd?: string; }): string; /** * Discover all sidecar files in a directory (recursive). */ export declare function discoverAllSidecars(dirPath: string): Promise; //# sourceMappingURL=discovery.d.ts.map