UNPKG

umbot

Version:

Universal bot(vk, telegram, viber) or skills for Yandex.Alisa, Маруся and sber

26 lines (25 loc) 1.01 kB
import { Buttons, TButton } from '../button'; import { ISberSmartAppCardPadding, TSberSmartAppTextColor, TSberSmartAppTypeface } from '../../platforms/interfaces'; export interface IImageParams { titleTypeface?: TSberSmartAppTypeface; titleText_color?: TSberSmartAppTextColor; titleMargins?: ISberSmartAppCardPadding; titleMax_lines?: number; descTypeface?: TSberSmartAppTypeface; descText_color?: TSberSmartAppTextColor; descMargins?: ISberSmartAppCardPadding; descMax_lines?: number; [name: string]: any; } export declare function initButton(button: TButton, buttonInst: Buttons): void; export declare class Image { button: Buttons; title: string; desc: string; imageToken: string | null; imageDir: string | null; isToken: boolean; params: IImageParams; constructor(image?: string | null, title?: string, desc?: string, button?: TButton | null); init(image: string | null, title: string, desc?: string, button?: TButton | null): boolean; }