import { LineCounter } from "yaml";
export interface ParsedFrontmatter {
    frontmatter: Record<string, unknown>;
    body: string;
}
export interface ParsedFrontmatterDocument extends ParsedFrontmatter {
    errors: readonly {
        message: string;
        pos?: [number, number];
    }[];
    lineCounter: LineCounter;
}
export interface ParseFrontmatterOptions {
    uniqueKeys?: boolean;
}
export declare class FrontmatterParseError extends Error {
    constructor(message: string);
}
export declare function parseFrontmatter(source: string, options?: ParseFrontmatterOptions): ParsedFrontmatter;
export declare function parseFrontmatterDocument(source: string, options?: ParseFrontmatterOptions): ParsedFrontmatterDocument;
