import type { FC, ReactNode } from 'react'; import type { ChatFetcher, ChatQuestionSelectData } from './@chat'; import type { Topic } from './core'; export interface ChatGPTProps { initialTopics: Topic[]; initialActiveTopic?: Topic['id'] | undefined; placeholder?: ReactNode; placeholderMenus?: Record; defaultUserAvatar?: string; defaultPrompt?: string; fetcher?: ChatFetcher | string; onLoadTopic?: (id: Topic['id']) => Promise | Topic | void; onActiveTopicChange?: (id: Topic['id'] | undefined) => void; onTopicsChange?: (topics: Topic[]) => void; onQuestionSelect?: (data: ChatQuestionSelectData) => void; } export declare const ChatGPT: FC;