import { ReactNode } from 'react'; import { Catalog, InferCatalogComponents, InferComponentProps } from '@json-render/core'; type SetState = (updater: (prev: Record) => Record) => void; interface ComponentContext> { props: InferComponentProps; children?: ReactNode; emit: (event: string) => void; bindings?: Record; loading?: boolean; } type ComponentFn> = (ctx: ComponentContext) => ReactNode; type Components = { [K in keyof InferCatalogComponents]: ComponentFn; }; export type { Components as C, SetState as S, ComponentContext as a, ComponentFn as b };