import { RenderingContextV2 } from '@acoustic-content-sdk/api'; import { KEY_LAYOUT_MODE, KEY_RENDERING_CONTEXT } from '@acoustic-content-sdk/utils'; import { ComponentClass, FunctionComponent } from 'react'; /** * Properties of a rendering component */ export interface ReactComponentProps { /** * Rendering context that contains the required information about the data item to be rendered */ [KEY_RENDERING_CONTEXT]: RenderingContextV2; /** * Layout mode used to render the component */ [KEY_LAYOUT_MODE]?: string; } /** * Definition of a generic react component */ export declare type ReactComponent
= FunctionComponent
| ComponentClass
; /** * Captures all information required to instantiate a component based on its type */ export declare type ComponentTypeRef
= ReactComponent
;