import type { Plugin } from "unified"; import type { Program } from "estree"; export type ChangePropsOptions = { funcName?: string; propName?: string; propAs?: string; }; /** * It is a recma plugin which transforms the esAST / esTree. * * This recma plugin changes the "props" parameter into "_props" in the function "_createMdxContent"; * and makes appropriate changes in order to be able to use the expression containing for example {props.foo} in the mdx. * * The "recma-mdx-change-props" basically converts into: * * function _createMdxContent(_props) { * // ... * const components = { * // ... * ..._props.components * } * } * */ declare const plugin: Plugin<[ChangePropsOptions?], Program>; export default plugin; //# sourceMappingURL=index.d.ts.map