import TamboAI from "@tambo-ai/typescript-sdk"; import { ComponentContextToolMetadata, ComponentRegistry, DefineToolFn, RegisteredComponent, TamboTool, TamboToolAssociations, TamboToolRegistry } from "../model/component-metadata.js"; /** * Get all the available components from the component registry * @param componentRegistry - The component registry * @param toolRegistry - The tool registry * @param toolAssociations - The tool associations * @returns The available components */ export declare const getAvailableComponents: (componentRegistry: ComponentRegistry, toolRegistry: TamboToolRegistry, toolAssociations: TamboToolAssociations) => TamboAI.AvailableComponent[]; /** * Get tools from tool registry that are not associated with any component * @param toolRegistry - The tool registry * @param toolAssociations - The tool associations * @returns The tools that are not associated with any component */ export declare const getUnassociatedTools: (toolRegistry: TamboToolRegistry, toolAssociations: TamboToolAssociations) => TamboTool[]; /** * Helper function to convert component props from Standard Schema or JSON Schema * @param component - The component to convert * @returns The converted props as JSON Schema */ export declare const convertPropsToJsonSchema: (component: RegisteredComponent) => unknown; /** * Get a component by name from the component registry * @param componentName - The name of the component to get * @param componentRegistry - The component registry * @returns The component registration information */ export declare const getComponentFromRegistry: (componentName: string, componentRegistry: ComponentRegistry) => RegisteredComponent; /** * Map a Tambo tool to a context tool * @param tool - The tool to map * @returns The context tool */ export declare const mapTamboToolToContextTool: (tool: TamboTool) => ComponentContextToolMetadata; /** * Provides type safety for defining a Tambo Tool. * * Tambo uses the [standard-schema.dev](https://standard-schema.dev) spec which means you can use any Standard Schema * compliant validator (Zod, Valibot, ArkType, etc.). This ensures the tool function args and output types are correctly * inferred from the provided schemas. * @example * ```typescript * import { z } from "zod/v4"; * * const myTool = defineTamboTool({ * // ... * }); * ``` * @param tool The tool definition to register * @returns The registered tool definition */ export declare const defineTool: DefineToolFn; //# sourceMappingURL=registry.d.ts.map