import type { MarkdownReaderDependencies } from "./document.js";
export interface ReadMarkdownParams {
    file: string;
    depth?: number;
}
export interface TocEntry {
    depth: number;
    number: string | null;
    title: string;
}
export interface ReadMarkdownResult {
    file: string;
    frontmatter: Record<string, unknown>;
    sections: TocEntry[];
}
export declare function createReadMarkdown(dependencies?: MarkdownReaderDependencies): (params: ReadMarkdownParams) => Promise<ReadMarkdownResult>;
export declare const readMarkdown: (params: ReadMarkdownParams) => Promise<ReadMarkdownResult>;
