import { CopilotChatLabels } from "../../providers/CopilotChatConfigurationProvider.mjs"; import { SlotValue } from "../../lib/slots.mjs"; import { CopilotChatView, CopilotChatViewProps } from "./CopilotChatView.mjs"; import * as react_jsx_runtime0 from "react/jsx-runtime"; import { CopilotKitCoreErrorCode } from "@copilotkitnext/core"; //#region src/components/chat/CopilotChat.d.ts type CopilotChatProps = Omit & { agentId?: string; threadId?: string; labels?: Partial; chatView?: SlotValue; /** * Error handler scoped to this chat's agent. Fires in addition to the * provider-level onError (does not suppress it). Receives only errors * whose context.agentId matches this chat's agent. */ onError?: (event: { error: Error; code: CopilotKitCoreErrorCode; context: Record; }) => void | Promise; }; declare function CopilotChat({ agentId, threadId, labels, chatView, onError, ...props }: CopilotChatProps): react_jsx_runtime0.JSX.Element; declare namespace CopilotChat { const View: typeof CopilotChatView; } //#endregion export { CopilotChat, CopilotChatProps }; //# sourceMappingURL=CopilotChat.d.mts.map