/** * V1 compatibility wrapper for useCopilotAction. * * Accepts the legacy Parameter[] action format and routes to the appropriate * v2 composable (useFrontendTool, useHumanInTheLoop, or useRenderTool). */ import type { WatchSource } from "vue"; import type { Parameter, MappedParameterTypes } from "@copilotkit/shared"; import type { VueFrontendTool } from "../v2/types"; export interface FrontendAction { name: string; description?: string; parameters?: T; handler?: (args: MappedParameterTypes) => unknown | Promise; followUp?: boolean; available?: "disabled" | "enabled" | "remote" | "frontend"; render?: VueFrontendTool>["render"]; renderAndWaitForResponse?: VueFrontendTool>["render"]; renderAndWait?: VueFrontendTool>["render"]; agentId?: string; } export interface CatchAllFrontendAction { name: "*"; render: (props: unknown) => unknown; } export declare function useCopilotAction(action: FrontendAction | CatchAllFrontendAction, deps?: WatchSource[]): void; //# sourceMappingURL=use-copilot-action.d.ts.map