import { default as default_2 } from 'react'; export declare const AiRobot: default_2.FC; export declare interface AiRobotMessage { id: string; content: string; isBot: boolean; timestamp: number; taskId?: string; isError?: boolean; isCompleted?: boolean; thinkIndex?: number; thinkTime?: number; isShowThink?: boolean; startThinkTime?: number; endThinkTime?: number; [key: string]: unknown; } export declare interface AiRobotProps { /** Dify API base URL */ serverUrl: string; /** Dify app code for passport auth */ appCode: string; /** localStorage key for access token */ tokenStorageKey?: string; /** localStorage key for conversation id */ conversationStorageKey?: string; /** Custom robot floating icon */ robotIcon?: string; /** Custom class name for floating icon and modal */ className?: string; /** Custom class name for modal */ modalClassName?: string; /** Tooltip text on floating icon */ tooltipText?: string; /** Floating icon position */ position?: { right?: number | string; bottom?: number | string; }; showVoiceChat?: boolean; showImageRecognition?: boolean; showPlugins?: boolean; onError?: (error: unknown) => void; } declare type FetchOptionType = Omit & { params?: Record; body?: BodyInit | Record | null; }; declare type IOnCompleted = (hasError?: boolean, errorMessage?: string) => void; declare type IOnData = (message: string, isFirstMessage: boolean, moreInfo: IOnDataMoreInfo) => void; declare type IOnDataMoreInfo = { conversationId?: string; taskId?: string; messageId: string; errorMessage?: string; errorCode?: string; }; declare type IOnError = (msg: string | unknown, code?: string) => void; declare type IOnFile = (file: unknown) => void; declare type IOnMessageEnd = (messageEnd: unknown) => void; declare type IOnMessageReplace = (messageReplace: { answer: string; }) => void; declare type IOnThought = (though: unknown) => void; declare type IOtherOptions = { getToken?: () => string | null; onData?: IOnData; onThought?: IOnThought; onFile?: IOnFile; onMessageEnd?: IOnMessageEnd; onMessageReplace?: IOnMessageReplace; onError?: IOnError; onCompleted?: IOnCompleted; getAbortController?: (abortController: AbortController) => void; }; export declare const ssePost: (url: string, fetchOptions: FetchOptionType, otherOptions: IOtherOptions) => Promise; export { }