import { type Section } from "./scan.js"; export interface MarkdownReaderFs { readFile(path: string, encoding: BufferEncoding): Promise; } export interface MarkdownReaderDependencies { fs?: MarkdownReaderFs; cwd?: string; } export interface LoadedMarkdownDocument { frontmatter: Record; sections: Section[]; source: string; } export declare function loadMarkdownDocument(file: string, dependencies?: MarkdownReaderDependencies): Promise; export declare function resolveMarkdownPath(file: string, cwd?: string): string; export declare function sliceMarkdownBytes(source: string, start: number, end: number): string;