import { IAction } from '@/components/Bot'; export type IncomingInput = { question: string; overrideConfig?: Record; socketIOClientId?: string; chatId?: string; fileName?: string; leadEmail?: string; action?: IAction; stored?: Record; fetch?: boolean; faqId?: string; useId?: string; }; type BaseRequest = { apiHost?: string; onRequest?: (request: RequestInit) => Promise; }; export type MessageRequest = BaseRequest & { chatflowid?: string; body?: IncomingInput; }; export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN'; export type FeedbackInput = { chatId: string; messageId: string; rating: any; content?: string; }; export type CreateFeedbackRequest = BaseRequest & { chatflowid?: string; body?: FeedbackInput; }; export type UpdateFeedbackRequest = BaseRequest & { id: string; body?: Partial; }; export type LeadCaptureInput = { chatflowid: string; chatId: string; name?: string; email?: string; phone?: string; }; export type GetFeedbackByMessageIdRequest = BaseRequest & { messageId: string; }; export type LeadCaptureRequest = BaseRequest & { body: Partial; }; export declare const getUserFromLocalStorage: () => any | null; export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{ data?: unknown; error?: Error | undefined; }>; export declare const getFeedbackByMessageId: ({ messageId, apiHost, onRequest }: GetFeedbackByMessageIdRequest) => Promise<{ data?: unknown; error?: Error | undefined; }>; export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{ data?: unknown; error?: Error | undefined; }>; export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureRequest) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const searchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: { chatflowid?: string | undefined; apiHost?: string | undefined; query: string; onRequest?: ((request: RequestInit) => Promise) | undefined; }) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const vectorSearchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: { chatflowid: string; apiHost?: string | undefined; query: string; onRequest?: ((request: RequestInit) => Promise) | undefined; }) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const getFileContent: ({ apiHost, path, onRequest, }: { apiHost?: string | undefined; path: string; onRequest?: ((request: RequestInit) => Promise) | undefined; }) => Promise<{ data?: any; error?: Error | undefined; }>; export {}; //# sourceMappingURL=sendMessageQuery.d.ts.map