import { AssistantAppState, AssistantServerAction, AssistantClientCustomizedCommand, AssistantSmartAppData, AssistantSmartAppError, AssistantSmartAppCommand, Hints, Suggestions } from './typings'; import { ObserverFunc } from './nanoobservable'; export interface AssistantEvents { start: () => void; data: (command: AssistantClientCustomizedCommand) => void; command: (data: T) => void; error: (error: T) => void; } export interface SendDataParams { action: AssistantServerAction; name?: string; requestId?: string; } export interface CreateAssistantParams { getState: () => AssistantAppState; getRecoveryState?: () => unknown; ready?: boolean; } export declare const createAssistant: ({ getState, getRecoveryState, ready, }: CreateAssistantParams) => { cancelTts: (() => void) | undefined; close: () => void; getInitialData: () => AssistantClientCustomizedCommand[]; findInInitialData: ({ type, command }: { type?: string | undefined; command?: string | undefined; }) => T | undefined; getRecoveryState: () => unknown; on: (event: K, cb: AssistantEvents[K]) => () => void; sendAction: | undefined; } = { type: string; payload?: Record | undefined; }, E extends { code: number; description: string; } = { code: number; description: string; }>(action: { type: string; payload: Record; }, onData?: ObserverFunc | undefined, onError?: ObserverFunc | undefined, { name, requestId }?: Pick) => () => void; sendData: ({ action, name, requestId }: SendDataParams, onData?: ObserverFunc | undefined) => (() => void); setGetState: (nextGetState: () => {}) => void; setGetRecoveryState: (nextGetRecoveryState?: (() => unknown) | undefined) => void; setSuggests: (suggestions: Suggestions['buttons']) => void; setHints: (hints: Hints) => void; sendText: (message: string) => void; ready: () => void; }; export * from './typings'; //# sourceMappingURL=createAssistant.d.ts.map