import type { Plugin } from 'unified'; import type { GenericParent } from 'myst-common'; import type { VFile } from 'vfile'; type Options = { lang?: string; transformPython?: boolean; transformR?: boolean; }; /** * Flatten any inline code that only has text in it to a single value. */ export declare function inlineCodeFlattenTransform(mdast: GenericParent, file: VFile): void; export declare function codeTransform(mdast: GenericParent, file: VFile, opts?: Options): void; export declare const codePlugin: Plugin<[Options?], GenericParent, GenericParent>; type CodeBlockTransformOptions = { translate: (string | { lang: string; directive?: string; })[]; }; export declare function codeBlockToDirectiveTransform(tree: GenericParent, file: VFile, opts?: CodeBlockTransformOptions): void; export declare const codeBlockToDirectivePlugin: Plugin<[ CodeBlockTransformOptions? ], GenericParent, GenericParent>; export declare const inlineCodeFlattenPlugin: Plugin<[], GenericParent, GenericParent>; export {}; //# sourceMappingURL=code.d.ts.map