import { Transformer } from "unified";
import { Nodes, Root } from "mdast";
interface LLMsOptions {
  /**
   * export name for output Markdown.
   *
   * @default _markdown
   */
  as?: string;
  /**
   * Explicit heading IDs in output.
   *
   * @default true
   */
  headingIds?: boolean;
  /**
   * Filter the elements to be included in the output:
   *
   * - `true`: include element & its children.
   * - `children-only`: exclude element but keep its children.
   * - `false`: exclude element & its children.
   *
   * ESM nodes are always excluded.
   */
  filterElement?: (node: Nodes) => boolean | 'children-only';
  /**
   * Tag names of MDX components to be output as placeholders, render them with `renderPlaceholder()`.
   */
  mdxAsPlaceholder?: string[];
  /**
   * Form of the export:
   *
   * - `string`: the output Markdown, authored expressions keep their source.
   * - `function`: a component, render it with `renderToMarkdown` from `fumadocs-core/server`: JSX elements are kept
   *   as JSX, receiving their original props and resolving like in the content, a component can call `asMarkdown()`
   *   to define its own Markdown form.
   *
   * @defaultValue `function` for a content source that renders pages for props, otherwise `string`
   */
  output?: 'string' | 'function';
  /**
   * @internal output in file data
   */
  _data?: boolean;
}
/**
 * Generate Markdown for LLMs from the authored source, other plugins can edit it with
 * `replaceSource()` from `fumadocs-core/mdx-plugins/stringifier`.
 *
 * Authored expressions and the branches of `<show>` are rendered from code.
 */
declare function remarkLLMs({ as, headingIds, _data, mdxAsPlaceholder, output, filterElement }?: LLMsOptions): Transformer<Root, Root>;
export { remarkLLMs as n, LLMsOptions as t };