UNPKG

assistant-robot

Version:

An assistant widget, have a 3D robot which can interact with user, have a simple LLM which can chat with user.

18 lines (17 loc) 730 B
import { IOperationBoxConfig } from "./type"; /** * the manager to manage the operation of assistant robot. * include the operation box's render. * include the operation's implementation. */ export declare class OperationManager { btnDom: HTMLButtonElement | undefined; inputDom: HTMLInputElement | undefined; menuBtnDom: HTMLElement | undefined; menuDom: HTMLElement | undefined; onAsk: (question: string) => void; onMenuClick: (key: string) => void; constructor(container: Element, onAsk: (question: string) => void, onMenuClick: (key: string) => void, options?: IOperationBoxConfig); initOperationBox(container: Element, options?: IOperationBoxConfig): void; addEventListener(): void; }