import { Context, Meta } from '@content-collections/core'; import { Pluggable } from 'unified'; type Document = { _meta: Meta; content: string; }; type FileAppender = ReturnType; type Options = { cwd?: string; files?: (appender: FileAppender) => void; remarkPlugins?: Pluggable[]; rehypePlugins?: Pluggable[]; }; declare function createFileAppender(tasks: Promise[], files: Record): { content: (importPath: string, content: string) => void; file: (importPath: string, filePath: string) => void; directory: (importPath: string, directoryPath: string) => void; }; declare function compileMDX({ cache }: Pick, document: Document, options?: Options): Promise; export { type Options, compileMDX };