rdesign/frontend/node_modules/@copilotkitnext/react/dist/components/chat/CopilotChatMessageView.d.cts

45 lines
1.5 KiB
TypeScript

import { WithSlots } from "../../lib/slots.cjs";
import { CopilotChatAssistantMessage } from "./CopilotChatAssistantMessage.cjs";
import { CopilotChatUserMessage } from "./CopilotChatUserMessage.cjs";
import { CopilotChatReasoningMessage } from "./CopilotChatReasoningMessage.cjs";
import * as react_jsx_runtime0 from "react/jsx-runtime";
import React from "react";
import { Message } from "@ag-ui/core";
//#region src/components/chat/CopilotChatMessageView.d.ts
type CopilotChatMessageViewProps = Omit<WithSlots<{
assistantMessage: typeof CopilotChatAssistantMessage;
userMessage: typeof CopilotChatUserMessage;
reasoningMessage: typeof CopilotChatReasoningMessage;
cursor: typeof CopilotChatMessageView.Cursor;
}, {
isRunning?: boolean;
messages?: Message[];
} & React.HTMLAttributes<HTMLDivElement>>, "children"> & {
children?: (props: {
isRunning: boolean;
messages: Message[];
messageElements: React.ReactElement[];
interruptElement: React.ReactElement | null;
}) => React.ReactElement;
};
declare function CopilotChatMessageView({
messages,
assistantMessage,
userMessage,
reasoningMessage,
cursor,
isRunning,
children,
className,
...props
}: CopilotChatMessageViewProps): react_jsx_runtime0.JSX.Element;
declare namespace CopilotChatMessageView {
var Cursor: ({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime0.JSX.Element;
}
//#endregion
export { CopilotChatMessageView, CopilotChatMessageViewProps };
//# sourceMappingURL=CopilotChatMessageView.d.cts.map