import { default as React, FC } from 'react'; import { ComponentDefinitions, ComponentCatalogOptions } from './types'; export interface ComponentPreProps { children?: React.ReactNode; [key: string]: unknown; } /** * Creates a `pre` component override for react-markdown that intercepts * fenced code blocks with the configured language tag and renders them * via the ComponentRenderer. * * Checks for a `language-{tag}` className on the nested `` element * and, if matched, extracts the text content and hands it off to the * renderer. * * Any non-matching `
` blocks are passed through as-is.
 */
export declare function createComponentPre(definitions: ComponentDefinitions, options?: ComponentCatalogOptions): FC;