@sberdevices/assistant-client
Version:
Модуль взаимодействия с виртуальным ассистентом
23 lines • 921 B
TypeScript
import React from 'react';
import { Suggestions } from '../typings';
export interface NativePanelParams {
defaultText?: string;
render?: (props: NativePanelProps) => void;
tabIndex?: number;
screenshotMode?: boolean;
}
export interface NativePanelProps extends NativePanelParams {
defaultText?: string;
sendServerAction: (action: Record<string, unknown>) => void;
sendText: (text: string) => void;
className?: string;
tabIndex?: number;
suggestions: Suggestions['buttons'];
bubbleText: string;
onListen: () => void;
onSubscribeListenStatus: (cb: (type: 'listen' | 'stopped') => void) => () => void;
onSubscribeHypotesis: (cb: (hypotesis: string, last: boolean) => void) => () => void;
}
export declare const NativePanel: React.FC<NativePanelProps>;
export declare const renderNativePanel: (props: NativePanelProps) => void;
//# sourceMappingURL=NativePanel.d.ts.map