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