UNPKG

svelte-markdown-pages

Version:

Build and render markdown-based content with distributed navigation for Svelte projects

18 lines (15 loc) 683 B
import { NavigationTree, DocItem } from '../types.js'; import 'zod'; declare class ParserError extends Error { filePath?: string | undefined; constructor(message: string, filePath?: string | undefined); } interface ParseOptions { basePath?: string; validateFiles?: boolean; autoDiscover?: boolean; } declare function parseIndexFile(filePath: string): DocItem[]; declare function buildNavigationTree(contentPath: string, options?: ParseOptions): NavigationTree; declare function validateContentStructure(contentPath: string, options?: ParseOptions): void; export { type ParseOptions, ParserError, buildNavigationTree, parseIndexFile, validateContentStructure };