yandex-dialoger
Version:
Ещё одна библиотека/фреймворк для разработки навыков Алисы.
41 lines (40 loc) • 1.2 kB
TypeScript
import { Dialog } from './Dialog';
export declare class TestClosure<TSceneName extends string, TModel> {
private readonly dialog;
private state;
private isNew;
constructor(dialog: Dialog<TSceneName, TModel>);
handleCommand(command: string): Promise<{
text: string;
tts?: string | undefined;
buttons?: {
title: string;
url?: string | undefined;
hide?: boolean | undefined;
}[] | undefined;
card?: {
type: string;
image_id: string;
title?: string | undefined;
description?: string | undefined;
} | undefined;
end_session: boolean;
}>;
handleIntent(intent: string): Promise<{
text: string;
tts?: string | undefined;
buttons?: {
title: string;
url?: string | undefined;
hide?: boolean | undefined;
}[] | undefined;
card?: {
type: string;
image_id: string;
title?: string | undefined;
description?: string | undefined;
} | undefined;
end_session: boolean;
}>;
private handleRequest;
}