import type { PageDefinition } from './types.js'; import { makeRelative } from './utils/make-relative.js'; declare class Node { protected parts: string[]; protected leaf: boolean; protected inputDir: string; children: Map; url: string; parent?: Node; constructor(parts: string[], leaf: boolean, inputDir: string, parent?: Node); get content(): Promise; remove: (parts: string[], position?: number) => boolean; has: (parts: string[]) => boolean; traverse(path?: string[]): Generator; private getFrontmatter; private getTitleFromURL; private getCategory; getPage(openPath?: string[]): Promise; } export declare class Sitemap { private inputDir; root: Node; relativeToInputDir: ReturnType; constructor(inputDir: string); add: (filepath: string) => void; remove: (filepath: string) => void; has: (filepath: string) => boolean; [Symbol.iterator](): Generator; getSectionRoot(filepath: string): Node; getNode(filepath: string): Node; getPages(filepath: string): Promise; } export {};