import type { GenericParent } from 'myst-common'; import type { VFile } from 'vfile'; type Options = { /** * In many existing JupyterBooks, the first node is a label `(heading)=` * The `propagateTargets` option merges the target with the heading * so the title can be picked up by the frontmatter. */ propagateTargets?: boolean; /** * `preFrontmatter` overrides frontmatter from the file. It must be taken * into account this early so title is not removed if preFrontmatter.title * is defined. */ preFrontmatter?: Record; /** * By default, if the page starts with an H1 heading and has no title in the * frontmatter, the heading will become the title and be removed. * If `keepTitleNode` is true, the heading will still become the title * but the node will not be removed. */ keepTitleNode?: boolean; }; export declare function getFrontmatter(file: VFile, tree: GenericParent, opts?: Options): { tree: GenericParent; frontmatter: Record; identifiers: string[]; }; export {}; //# sourceMappingURL=frontmatter.d.ts.map