UNPKG

ze-react-component-library

Version:
35 lines (34 loc) 2.42 kB
import type { LogicformType, LogicformAPIResultType, AskAPIResultType } from "zeroetp-api-sdk"; export declare function request(func: Promise<any>): Promise<any>; export declare function requestAsk(question: string, logicform_only?: boolean, context?: LogicformType): Promise<AskAPIResultType>; export declare function requestLogicform(logicform: LogicformType, silent?: boolean): Promise<LogicformAPIResultType>; export declare function requestGuessSchema(schemaType: string, table: string): Promise<any>; export declare function requestRecommend(logicform: LogicformType): Promise<any>; export declare function requestSuggest(s: string): Promise<any>; export declare function requestSuggestByVoice(formData: FormData): Promise<any>; export declare function requestSimilarWords(w: string): Promise<any>; export declare function requestKeywords(question?: string): Promise<any>; export declare function requestGuess(question: string): Promise<any>; export declare function requestSetting(id: string): Promise<any>; export declare function requestConfig(id: string): Promise<any>; export declare function requestLLMChat(body: any, callback: (delta: string) => void, onFinish?: (v: boolean) => void): Promise<void>; export declare function requestLLMErrorSuggestion(ask: string, callback: (delta: string) => void): Promise<void>; export declare function requestPollingMicrophoneText(): Promise<any>; export declare function requestHot(): Promise<any>; export declare function requestHistory(): Promise<any>; export declare function getRoles(): Promise<any>; export declare function createRole(payload: any): Promise<any>; export declare function updateRole(id: string, payload: any): Promise<any>; export declare function deleteRole(id: string): Promise<any>; export declare function getAccounts(params?: any): Promise<any>; export declare function createAccount(payload: any): Promise<any>; export declare function updateAccount(id: string, payload: any): Promise<any>; export declare function deleteAccount(id: string): Promise<any>; export declare function requestMeasurementsGuide(params: any): Promise<any>; export declare function analyze(logicform: LogicformType, operator: "$mom" | "$yoy"): Promise<any>; export declare function postFeedbacks(body: any, options?: { [key: string]: any; }): Promise<any>; export declare function deleteFeedbacksById(params: any, options?: { [key: string]: any; }): Promise<any>;