import type { ComponentType } from 'react'; import type { StreamdownProps } from 'streamdown'; import type { AiResponseCodeBlockProps } from '../ai-response-types.js'; /** * Streamdown's component map type. */ type StreamdownComponents = NonNullable; /** * Map of fence language identifiers to custom renderers provided by the consumer. */ type CodeBlockRenderers = Record>; /** * Builds the component mapping for Streamdown. It starts from the markdown mappings we * have for react-markdown and wraps the code component so that it receives whether the * code is inline or a block, and so that a fenced block whose language a consumer * registered a renderer for is handed over to that renderer. * @internal */ export declare const getStreamdownComponents: (customCodeBlockRenderers?: CodeBlockRenderers) => StreamdownComponents; export {}; //# sourceMappingURL=component-mappings.d.ts.map