import type { GenericParent } from 'myst-common'; import type { Include } from 'myst-spec-ext'; import type { Plugin } from 'unified'; import type { VFile } from 'vfile'; import type { PageFrontmatter } from 'myst-frontmatter'; type ParseResult = { mdast: GenericParent; frontmatter?: PageFrontmatter; }; export type Options = { loadFile: (filename: string) => Promise | string | undefined; resolveFile: (includeFile: string, sourceFile: string, sourcePath: string, vfile: VFile) => string | undefined; parseContent: (filename: string, content: string) => Promise | ParseResult; sourceFile: string; sourcePath: string; stack?: string[]; }; /** * This is the {include} directive, that loads from disk. * * RST documentation: * - https://docutils.sourceforge.io/docs/ref/rst/directives.html#including-an-external-document-fragment */ export declare function includeDirectiveTransform(tree: GenericParent, frontmatter: PageFrontmatter, vfile: VFile, opts: Options): Promise; export declare function filterIncludedContent(vfile: VFile, filter: Include['filter'], rawContent: string): { content: string; startingLineNumber?: number; }; export declare const includeDirectivePlugin: Plugin<[ PageFrontmatter, Options ], GenericParent, GenericParent>; export {}; //# sourceMappingURL=include.d.ts.map