import type { ReactElement } from 'react'; import type { Node as RichContentNode, RichContent } from 'ricos-schema'; import type { AnchorTarget, AvailableExperiments, CommonProps, CustomAnchorScroll, DebugMode, Helpers, LegacyViewerPluginConfig, LinkPreviewData, LocaleResource, NodeViewDecorator, NodeViewRenderers, OnErrorFunction, PluginMapping, PluginTypeMapper, RelValue, RicosTheme, SEOSettings, TextAlignment, TextDirection, TFunction, ViewerPlugin } from 'ricos-types'; export interface ContentViewerProps extends Pick { onLoad?: (any: any) => void; content?: RichContent; isMobile?: boolean; renderStaticHtml?: boolean; helpers?: Helpers; platform?: string; locale: string; typeMappers: PluginMapping; nodeViewRenderers?: NodeViewRenderers; nodeViewDecorators?: NodeViewDecorator[]; t: TFunction; theme?: RicosTheme; anchorTarget?: AnchorTarget; relValue?: RelValue; customAnchorScroll?: CustomAnchorScroll; config: LegacyViewerPluginConfig; textDirection?: TextDirection; direction?: TextDirection; textAlignment?: TextAlignment; disabled?: boolean; seoMode?: SEOSettings; iframeSandboxDomain?: string; onError?: OnErrorFunction; addAnchors?: boolean | string; localeResource?: LocaleResource; experiments?: AvailableExperiments; onHover?: (event: React.MouseEvent) => void; setRef?: React.RefObject; onMouseOver?: (event: React.MouseEvent) => void; onNodeClick?: ({ node }: { node: RichContentNode; }) => void; debugMode?: DebugMode[]; jsdomMode?: boolean; devTools: React.ReactNode; } interface RCProps { locale?: string; typeMappers?: PluginTypeMapper[]; t?: TFunction; theme?: RicosTheme; config?: LegacyViewerPluginConfig; onError?: OnErrorFunction; } export type ViewerRCProps = Omit & RCProps; export interface RicosProps extends CommonProps { _rcProps?: ViewerRCProps; } export interface RicosViewerProps extends RicosProps { children?: ReactElement; plugins?: ViewerPlugin[]; seoSettings?: boolean | SEOSettings; textSelectionToolbar?: boolean; linkPreviewPopoverFetchData?: (url: string) => Promise; content?: RichContent; addAnchors?: boolean | string; onNodeClick?: ({ node }: { node: RichContentNode; }) => void; jsdomMode?: boolean; } export interface RCVPluginProps { config: Record; typeMappers: PluginTypeMapper[]; nodeViewDecorators: NodeViewDecorator[]; nodeViewRenderers: NodeViewRenderers; } export {}; //# sourceMappingURL=types.d.ts.map