import * as _mastra_core_server0 from "@mastra/core/server"; import { AbstractAgent } from "@ag-ui/client"; import { CopilotServiceAdapter } from "@copilotkit/runtime"; import { RequestContext } from "@mastra/core/request-context"; //#region src/copilotkit.d.ts /** * Registers a CopilotKit endpoint that exposes Mastra agents through the AG-UI protocol. * This function creates an API route that handles CopilotKit requests and forwards them to Mastra agents, enabling seamless integration between CopilotKit's UI components and Mastra's agent framework. * * @example * ```ts * registerCopilotKit({ * path: "/api/copilotkit" * }); * ``` */ declare function registerCopilotKit | unknown = unknown>({ path, resourceId, serviceAdapter, agents, setContext }: { path: string; resourceId: string; serviceAdapter?: CopilotServiceAdapter; agents?: Record; setContext?: (c: any, requestContext: RequestContext) => void | Promise; }): _mastra_core_server0.ApiRoute; //#endregion export { registerCopilotKit }; //# sourceMappingURL=copilotkit.d.ts.map