import { FileUpload, IAction } from '@/components/Bot'; export type IncomingInput = { question: string; uploads?: FileUpload[]; 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 UpsertRequest = BaseRequest & { chatflowid: string; apiHost?: string; formData: FormData; }; 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 createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ data?: unknown; error?: Error | undefined; }>; export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ data?: unknown; error?: Error | undefined; }>; export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ data?: any; error?: Error | undefined; }>; export declare const getMessageById: ({ chatflowid, apiHost, onRequest, messageId }: BaseRequest & { chatflowid?: string | undefined; body?: IncomingInput | undefined; } & { messageId: string; }) => Promise>; export declare const updateMessage: ({ apiHost, body, 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