/**
 * Filesystem loader for `docs/product/<slug>/index.{md,mdx}` (Path W).
 *
 * Used by the install runtime via `src/services/docs_install/loader.ts` to
 * read from the bundled `dist/docs-bundled/` mirror, and by tests to load
 * directly from the repo's `docs/product/`. The SPA does NOT use this module
 * — Vite's `import.meta.glob('/docs/product/**.md', { query: '?raw' })`
 * inlines the files at build time.
 */
import type { DocSource } from "./types.js";
/**
 * Discover all bundled doc slugs under `rootDir` (one subdirectory per slug).
 *
 * @param rootDir Absolute path to the bundled docs root, e.g.
 *   `/path/to/docs/product` (dev) or `/path/to/dist/docs-bundled` (prod).
 */
export declare function listDocSlugs(rootDir: string): string[];
/**
 * Load and validate a single doc source by slug. Throws if the slug is
 * unknown or the front-matter is malformed.
 */
export declare function loadDocSource(rootDir: string, slug: string): DocSource;
/**
 * Load every doc source under `rootDir`. Sorted by slug for deterministic
 * output (drift tests, sitemap generation).
 */
export declare function loadAllDocs(rootDir: string): DocSource[];
//# sourceMappingURL=loader.d.ts.map