import type { IAppAPI, IMpAuth, IRouterAPI } from '../types/mp'; export declare function createMpAiAPI(ctx: Omit, keyof IRouterAPI>): { ai: { LLM: { chat: (params: { provider: string; model: string; messages: import("@cloudbase/ai").ChatModelMessage[]; stream: boolean; temperature: number; top_p: number; varPath?: string; setStateType: string; callbackEventFlowId?: string; timeout?: number; }, $w: any) => Promise; }; bot: { getFeedback: (params: any) => Promise; getRecommendQuestions: (params: any, $w: any) => Promise<{ textStream: AsyncIterable; eventStream: { [Symbol.asyncIterator](): any; next(): Promise<{ done?: boolean; value?: unknown; }>; }; }>; sendMessage: (params: any, $w: any) => Promise<{ textStream: AsyncIterable; eventStream: { [Symbol.asyncIterator](): any; next(): Promise<{ done?: boolean; value?: unknown; }>; }; }>; uploadFiles: ({ botId, fileList, }: { botId: string; fileList: { fileName: string; fileId: string; type: string; }[]; }) => Promise; createConversation: (props: { botId: string; title?: string; }) => Promise; getConversation: (props: { botId: string; pageSize?: number; pageNumber?: number; isDefault?: boolean; }) => Promise; deleteConversation: (props: { botId: string; conversationId: string; }) => Promise; speechToText: (props: { botId: string; engSerViceType: string; voiceFormat: string; url: string; isPreview?: boolean; }) => Promise; textToSpeech: (props: { botId: string; voiceType: number; isPreview?: boolean; }) => Promise; getTextToSpeechResult: (props: { botId: string; taskId: string; isPreview?: boolean; }) => Promise; }; }; }; export declare function createAiMethods(ctx: Omit, keyof IRouterAPI>): { LLM: { chat: (params: { provider: string; model: string; messages: Array; stream: boolean; temperature: number; top_p: number; varPath?: string; setStateType: string; callbackEventFlowId?: string; timeout?: number; }, $w: any) => Promise; }; bot: { getFeedback: (params: any) => Promise; getRecommendQuestions: (params: any, $w: any) => Promise<{ textStream: AsyncIterable; eventStream: { [Symbol.asyncIterator](): any; next(): Promise<{ done?: boolean; value?: unknown; }>; }; }>; sendMessage: (params: any, $w: any) => Promise<{ textStream: AsyncIterable; eventStream: { [Symbol.asyncIterator](): any; next(): Promise<{ done?: boolean; value?: unknown; }>; }; }>; uploadFiles: ({ botId, fileList, }: { botId: string; fileList: Array<{ fileName: string; fileId: string; type: string; }>; }) => Promise; createConversation: (props: { botId: string; title?: string; }) => Promise; getConversation: (props: { botId: string; pageSize?: number; pageNumber?: number; isDefault?: boolean; }) => Promise; deleteConversation: (props: { botId: string; conversationId: string; }) => Promise; speechToText: (props: { botId: string; engSerViceType: string; voiceFormat: string; url: string; isPreview?: boolean; }) => Promise; textToSpeech: (props: { botId: string; voiceType: number; isPreview?: boolean; }) => Promise; getTextToSpeechResult: (props: { botId: string; taskId: string; isPreview?: boolean; }) => Promise; }; }; interface AsyncIterable { [Symbol.asyncIterator](): AsyncIterator; } export {};