import type { DocsJson } from "./schema.js";
export interface DocRoot {
    dir: string;
    config: DocsJson;
    slug: string;
}
export interface DiscoveredPage {
    source: string;
    root: DocRoot;
    routePath: string;
    included: boolean;
}
export interface Discovery {
    roots: DocRoot[];
    pages: DiscoveredPage[];
    errors: string[];
}
export declare function routePathFor(relPath: string): string;
export declare function discoverDocRoots(repoRoot: string): Discovery;
export declare function pathKind(candidate: string): "file" | "dir" | null;
