import { type ComponentTypeHandle } from '../../factory/types.js'; import { type EnhancedCmsComponent } from './types.js'; import { type GenericContext } from '../../context/types.js'; import { type FunctionComponent, type PropsWithChildren, type ComponentType } from 'react'; import { type ContentLink } from '@remkoj/optimizely-graph-client'; export declare function getComponentLabel(componentInstance?: ComponentType | null): string; /** * Helper function to safely resolve a component from the ContentType information to * * @param contentType The content type to get the component for * @param prefix The prefix/context of the component (typically "component", "element", etc..) * @param ctx The context in which to operate * @returns The component required for rendering */ export declare function resolveComponent(contentType: ComponentTypeHandle | null | undefined, prefix: string | null | undefined, variant: string | null | undefined, ctx: GenericContext): EnhancedCmsComponent | ComponentMissingComponent; export default resolveComponent; export type ComponentMissingComponent = FunctionComponent> & { displayName: 'Opti::ComponentMissing'; }; export declare function isComponentMissingComponent(toTest: ComponentType | null | undefined): toTest is ComponentMissingComponent;