import type { JSX } from 'react'; import React from 'react'; import type { Element, QuestionnaireItem } from 'fhir/r4'; export interface ParsedXhtml { content: React.ReactNode; styles?: Record; } /** * Get text display flyover for items with itemControlCode flyover and a flyover childItem. * Also works for XHTML rendering as a bonus. * * Lives here rather than utils/extensions so the core extension reader stays free of * html-react-parser. * * @author Sean Fong */ export declare function getTextDisplayFlyover(qItem: QuestionnaireItem): string | JSX.Element | JSX.Element[]; export declare function useParseXhtml(element: Element | undefined, text: string | null | undefined): ParsedXhtml | null; export declare function getStylesFromClass(className: string): Record | null; export declare function convertKebabToCamelCase(property: string): string;