import type { ReactDeckOptions } from "./types"; type CompileOptions = Pick; /** * Resolve `::include{file=./path/to/file.mdx}` directives by replacing them * with the content of the referenced file (stripping its top-level frontmatter). * Supports nested includes up to a depth limit to prevent infinite recursion. * Returns the resolved content and the set of included file paths (for HMR). */ export declare function resolveIncludes(content: string, filePath: string, { maxDepth, _depth }?: { maxDepth?: number; _depth?: number; }): { content: string; includedFiles: string[]; }; /** * Slides are separated by "---" in the markdown file. * * A file can use frontmatter to specify the title of the slide and internal * frontmatter to specify layout like this : * * --- * * layout: main * * --- * * # Slide 1 * * --- t * layout: slide2 * * --- * * # Slide 2 * */ export declare function transformSlidesMdxToReact(sourceContent: string, { production: isProd, filePath, ...options }: { production: boolean; /** Absolute path to the source MDX file, used to resolve includes. */ filePath?: string; } & CompileOptions): Promise<{ code: string; includedFiles: string[]; }>; export declare function extractInlineModules(source: string, { inlineModules, }?: { inlineModules?: Set; }): { content: string; inlineModules: Set; }; export {};