/** * Remark plugin that transforms SUI admonition blockquotes into Message components. * * Input syntax in a `.md` or `.mdx` file: * * > [!warning] Use Collapsible Panel * > Collapsible Panel supports expanding panels. * * After the plugin runs, the blockquote MDAST node is annotated with hast * properties that react-markdown and MDX pass through as React props to * `MarkdownBlockquote`. The renderer checks for `admonitionType` to decide * whether to render a `` instead of a plain blockquote. */ import type Message from '@splunk/react-ui/Message'; import type { Root } from 'mdast'; export type AdmonitionType = NonNullable['type']>; /** Props attached to a blockquote node by the admonition plugin. */ export interface AdmonitionProps { admonitionType: AdmonitionType; admonitionTitle?: string; } export declare function remarkSuiAdmonitions(): (tree: Root) => void;