import type { ActionEvent as CoreActionEvent, DefinedComponent as CoreDefinedComponent, Library as CoreLibrary, LibraryDefinition as CoreLibraryDefinition, ComponentRenderProps as CoreRenderProps } from '@openuidev/lang-core'; import type { z } from 'zod/v4'; import type { $ZodObject } from 'zod/v4/core'; import type { ReactElement, ReactNode } from '@lynx-js/react'; export type { ComponentGroup, LibraryJSONSchema, PromptOptions, SubComponentOf, ToolDescriptor, } from '@openuidev/lang-core'; /** * Props passed to an OpenUI ReactLynx component renderer. */ export interface ComponentRenderProps

> extends CoreRenderProps { onAction?: (event: CoreActionEvent) => void; } export type ComponentRenderer

> = React.FC>; export type DefinedComponent = CoreDefinedComponent>>; export type Library = CoreLibrary>; export type LibraryDefinition = CoreLibraryDefinition>; /** * Define a ReactLynx component renderer and its OpenUI schema metadata. */ export declare function defineComponent(config: { name: string; props: T; description: string; component: ComponentRenderer>; }): DefinedComponent; export type RenderOutput = ReactElement | ReactElement[] | null;