/**
 * Copyright (c) @talatkuyuk AKA @ipikuka
 * SPDX-License-Identifier: MPL-2.0
 */
import { type Compatible } from "vfile";
/**
 * gets the fronmatter and the stripped source
 *
 * @param source markdown or MDX source
 * @returns fronmatter and stripped source. If no matter is found, the frontmatter is an empty object.
 */
export declare function getFrontmatter<TFrontmatter extends Record<string, unknown>>(source: Compatible): {
    frontmatter: TFrontmatter;
    strippedSource: string;
};
//# sourceMappingURL=getFrontmatter.d.ts.map