export type MarkdownPage = { title: string; content: string | MarkdownPage[]; }; /** * Loads all markdown files from the given directory and return them as a list of markdown pages that can be passed directly as a magidoc option. * * Files in the directory must follow a standard structure. All files and directory should have a number indicating their order, followed by a title and a `.md` extension for files. * * @example * 01.Introduction * ├── 01.Welcome.md * └── 02.Get Started.md * 02.Advanced Usage.md * 03.More Resources * ├── 01.Playground.md * └── 02.Clients.md * * @param directory The directory where the markdown file tree it located * @returns markdown pages to pass to the magidoc configuration */ export declare function loadMarkdownPagesTree(directory: string): MarkdownPage[];