@bitte-ai/chat
Version:
Bitte AI chat component
39 lines (32 loc) • 1.98 kB
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { BitteAiChatProps, BitteToolWarning, TransactionContainerProps, TransactionButtonProps, MessageAppend, PortfolioResponse } from '@bitte-ai/types';
import { Transaction } from '@near-wallet-selector/core';
import { SafeEncodedSignRequest } from 'near-safe';
declare const BitteAiChat: ({ wallet, apiUrl, apiKey, historyApiUrl, agentId, options, customToolComponents, widget, isWidgetChat, messages, format, }: BitteAiChatProps) => react_jsx_runtime.JSX.Element;
declare const ReviewTransaction: ({ transactions, warnings, messageBackgroundColor, borderColor, chatId, textColor, customTxContainer: TxContainer, customApproveTxButton: ApproveButton, customDeclineTxButton: DeclineButton, append, messageId, }: {
transactions: Transaction[];
warnings?: BitteToolWarning[] | null;
creator?: string;
evmData?: SafeEncodedSignRequest;
agentId: string;
walletLoading?: boolean;
borderColor: string;
chatId: string | undefined;
messageBackgroundColor: string;
textColor: string;
customTxContainer?: React.ComponentType<TransactionContainerProps>;
customApproveTxButton?: React.ComponentType<TransactionButtonProps>;
customDeclineTxButton?: React.ComponentType<TransactionButtonProps>;
append: MessageAppend;
messageId: string;
}) => react_jsx_runtime.JSX.Element;
interface AccountOverviewProps {
data: PortfolioResponse;
walletAddress: string;
}
declare function AccountOverview({ data, walletAddress }: AccountOverviewProps): react_jsx_runtime.JSX.Element;
declare function TokenList({ data }: {
data: PortfolioResponse;
}): react_jsx_runtime.JSX.Element | null;
declare const BitteWidgetChat: ({ wallet, apiUrl, apiKey, historyApiUrl, agentId, options, customToolComponents, widget, messages, format, }: BitteAiChatProps) => react_jsx_runtime.JSX.Element;
export { AccountOverview, BitteAiChat, BitteWidgetChat, ReviewTransaction, TokenList };