import { MarkdownTextProps } from "./MarkdownText.js"; //#region src/MarkdownTextPrimitive.d.ts type MarkdownTextPrimitiveProps = Omit & { /** Transform the text before rendering. */ preprocess?: ((text: string) => string) | undefined; }; /** * Auto-wired markdown text primitive that reads text and status from the * runtime context. Use this inside `MessagePrimitive.Parts` as the `Text` * component. * * @example * ```tsx * * {({ part }) => { * if (part.type === "text") return ; * return null; * }} * * ``` * * For use with `MessageContent`'s `renderText` callback (which does not * have a part scope), use `MarkdownText` directly and pass `text`/`status` * as props. */ declare const MarkdownTextPrimitive: { ({ preprocess, ...props }: MarkdownTextPrimitiveProps): import("react").JSX.Element; displayName: string; }; //#endregion export { MarkdownTextPrimitive, type MarkdownTextPrimitiveProps }; //# sourceMappingURL=MarkdownTextPrimitive.d.ts.map