UNPKG

@mesh-tech/mesh-cli

Version:

CLI for Mesh platform development utilities

21 lines (20 loc) 566 B
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;