import { CSSProperties, FC, ReactHTML, type ReactElement } from 'react'; import type { ITextstring, TextstringReplacement } from './types'; export type TextstringProps = { /** * The element that the text should be displayed in. */ children?: ReactElement; /** * The class name of the HTML element that the text should be displayed in. Only used if `children` is not set. */ childrenClassName?: string; /** * The styles of the HTML element that the text should be displayed in. Only used if `children` is not set. */ childrenStyles?: CSSProperties; /** * The tag of the HTML element that the text should be displayed in. Only used if `children` is not set. */ childrenTagName?: keyof ReactHTML; /** * Whether the textstring contains HTML elements and should be displayed as HTML. */ isTextstringHTML?: boolean; /** * Replacement values for the textstring. */ replacements?: TextstringReplacement; /** * The text that should be displayed. */ textstring: ITextstring; }; declare const Textstring: FC; export default Textstring;