rdesign/frontend/node_modules/@copilotkitnext/react/dist/providers/CopilotChatConfigurationPro...

45 lines
1.8 KiB
TypeScript

import React, { ReactNode } from "react";
//#region src/providers/CopilotChatConfigurationProvider.d.ts
declare const CopilotChatDefaultLabels: {
chatInputPlaceholder: string;
chatInputToolbarStartTranscribeButtonLabel: string;
chatInputToolbarCancelTranscribeButtonLabel: string;
chatInputToolbarFinishTranscribeButtonLabel: string;
chatInputToolbarAddButtonLabel: string;
chatInputToolbarToolsButtonLabel: string;
assistantMessageToolbarCopyCodeLabel: string;
assistantMessageToolbarCopyCodeCopiedLabel: string;
assistantMessageToolbarCopyMessageLabel: string;
assistantMessageToolbarThumbsUpLabel: string;
assistantMessageToolbarThumbsDownLabel: string;
assistantMessageToolbarReadAloudLabel: string;
assistantMessageToolbarRegenerateLabel: string;
userMessageToolbarCopyMessageLabel: string;
userMessageToolbarEditMessageLabel: string;
chatDisclaimerText: string;
chatToggleOpenLabel: string;
chatToggleCloseLabel: string;
modalHeaderTitle: string;
welcomeMessageText: string;
};
type CopilotChatLabels = typeof CopilotChatDefaultLabels;
interface CopilotChatConfigurationValue {
labels: CopilotChatLabels;
agentId: string;
threadId: string;
isModalOpen: boolean;
setModalOpen: (open: boolean) => void;
}
interface CopilotChatConfigurationProviderProps {
children: ReactNode;
labels?: Partial<CopilotChatLabels>;
agentId?: string;
threadId?: string;
isModalDefaultOpen?: boolean;
}
declare const CopilotChatConfigurationProvider: React.FC<CopilotChatConfigurationProviderProps>;
declare const useCopilotChatConfiguration: () => CopilotChatConfigurationValue | null;
//#endregion
export { CopilotChatConfigurationProvider, CopilotChatConfigurationProviderProps, CopilotChatConfigurationValue, CopilotChatLabels, useCopilotChatConfiguration };
//# sourceMappingURL=CopilotChatConfigurationProvider.d.cts.map