/** * V1 compatibility wrapper for useFrontendTool. * * Accepts the legacy Parameter[] format and converts to Zod via getZodParameters, * then delegates to the v2 composable. */ import type { WatchSource } from "vue"; import { type Parameter, type MappedParameterTypes } from "@copilotkit/shared"; import type { VueFrontendTool } from "../v2/types"; export interface UseFrontendToolArgs { name: string; description?: string; parameters?: T; handler?: (args: MappedParameterTypes) => unknown | Promise; followUp?: boolean; available?: "disabled" | "enabled"; render?: VueFrontendTool>["render"]; agentId?: string; } export declare function useFrontendTool(tool: UseFrontendToolArgs, deps?: WatchSource[]): void; //# sourceMappingURL=use-frontend-tool.d.ts.map