UNPKG

@bitte-ai/chat

Version:
40 lines (33 loc) 2.04 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { BitteAiChatProps, BitteToolWarning, TransactionContainerProps, TransactionButtonProps, PortfolioResponse } from '@bitte-ai/types'; import { Transaction } from '@near-wallet-selector/core'; import { Message } from 'ai'; import { SafeEncodedSignRequest } from 'near-safe'; declare const BitteAiChat: ({ wallet, apiUrl, apiKey, historyApiUrl, agentId, options, customToolComponents, widget, isWidgetChat, messages, }: 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: (message: Message | Omit<Message, "id">) => Promise<string | null | undefined>; 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, }: BitteAiChatProps) => react_jsx_runtime.JSX.Element; export { AccountOverview, BitteAiChat, BitteWidgetChat, ReviewTransaction, TokenList };