import { docSlug } from './docSlug'; export { docSlug }; export interface DocMetadata { id: string; filename: string; title: string; folder: string[] | null; date: string | null; formattedDate: string | null; } /** Fallback title when the frontmatter has none. */ export declare function titleFromFilename(filename: string): string; /** Display metadata of a document: the filename is only an identifier. */ export declare function parseDocMetadata(filename: string, content: string): DocMetadata; /** Reads a document and returns its metadata (an unreadable file falls back to its filename). */ export declare function readDocMetadata(absPath: string, filename: string): DocMetadata; /** First free `.md`, `-2.md`, … in `dir`. */ export declare function uniqueDocFilename(dir: string, title: string): string; //# sourceMappingURL=parser.d.ts.map