/** * @links https://developers.line.biz/en/reference/messaging-api/#template-messages */ export declare enum LineTemplateType { BUTTONS = "buttons", CONFIRM = "confirm", CAROUSEL = "carousel", IMAGE_CAROUSEL = "image_carousel" } export declare enum LineImageAspectRatio { RECTANGLE = "rectangle", SQUARE = "square" } export declare enum LineImageSize { COVER = "cover", CONTAIN = "contain" } export declare enum LineTemplateAction { POSTBACK = "postback", MESSAGE = "message", URI = "uri", DATETIMEPICKER = "datetimepicker", CAMERA = "camera", CAMERAROLL = "cameraRoll", LOCATION = "location", RICHMENUSWITCH = "richmenuswitch", CLIPBOARD = "clipboard" } export interface LineAction { type?: LineTemplateAction; label?: string; data?: string; mode?: string; min?: string; max?: string; text?: string; clipboardText?: string; nextMessage?: any; uri?: string; } export interface LineTemplate { type?: LineTemplateType; thumbnailImageUrl?: string; imageAspectRatio?: LineImageAspectRatio; imageSize?: LineImageSize; imageBackgroundColor?: string; title?: string; text?: string; defaultAction?: LineAction; actions?: Array; columns?: Array<{ thumbnailImageUrl?: string; imageUrl?: string; imageBackgroundColor?: string; title?: string; text?: string; defaultAction?: LineAction; actions?: Array; action?: LineAction; }>; } export interface LineTemplateForm { type?: string; altText?: string; template: LineTemplate; }