import type { ComponentType } from "react"; import type { TamboComponent as BaseTamboComponent, RegisteredComponent as BaseRegisteredComponent } from "@tambo-ai/client"; export type { SupportedSchema, ToolAnnotations, ParameterSpec, ComponentContextToolMetadata, ComponentContextTool, TamboToolRegistry, JSONSchemaLite, TamboTool, TamboToolJSONSchema, TamboToolUnknown, TamboToolStandardSchema, UnsupportedSchemaTamboTool, TamboToolAssociations, RegisterToolsFn, RegisterToolFn, DefineToolFn, } from "@tambo-ai/client"; /** * React-specific RegisteredComponent with ComponentType fields. */ export interface RegisteredComponent extends Omit { component: ComponentType; loadingComponent?: ComponentType; } export type ComponentRegistry = Record; /** * React-specific TamboComponent with ComponentType fields. */ export interface TamboComponent extends Omit { /** * The React component to render. * * Make sure to pass the Component itself, not an instance of the component. For example, * if you have a component like this: * * ```tsx * const MyComponent = () => { * return
My Component
; * }; * ``` * * You should pass the `Component`: * * ```tsx * const components = [MyComponent]; * * ``` */ component: ComponentType; /** The loading component to render while the component is loading */ loadingComponent?: ComponentType; } //# sourceMappingURL=component-metadata.d.ts.map