UNPKG

yandex-dialoger

Version:

Ещё одна библиотека/фреймворк для разработки навыков Алисы.

26 lines (25 loc) 973 B
import { DialogsResponse } from './DialogsResponse'; import { ReplyText } from './ReplyText'; export declare class ReplyBuilder { private text; private tts; private imageId?; private readonly buttons; get buttonsCount(): number; withText(...speechParts: ReplyText[]): void; withTts(...ttsParts: (string | number)[]): void; withTextPluralized(count: number, one: ReplyText, some: ReplyText, many: ReplyText): void; withButton(params: string | { title: string; url: string; }): void; withImage(imageId: string): void; selectRandom<TItem>(fn: (item: TItem) => void, items: TItem[], number?: number): void; build<TSceneName>(sceneName: string, model: unknown, endSession: boolean): DialogsResponse; /** * Добавляет пробелы в конце text и tts * (нужно перед добавлением новой части) */ private addSpace; private addSpaceToTts; }