import * as Types from "./types"; export * from "./types"; /** * Client SDK for Google Chat Webhook message sending */ export declare class GoogleChatWebhook { private options; private axios; constructor(options: Types.ConstructorOptions); /** * Creates new simple text message thread in Google Chat. Returns Google Chat Webhook response. * @param {GoogleChatWebhook.TextMessage} text * @returns {Promise} * @throws {GoogleChatWebhook.InvalidArgumentError} * @throws {GoogleChatWebhook.UnknownError} */ sendText(text: Types.TextMessage): Promise; /** * Creates new card message thread in Google Chat. Returns Google Chat Webhook response. * @param {CardMessage} card * @returns {Promise} * @throws {UnknownError} */ sendCard(card: Types.CardMessage): Promise; /** * Returns simple formatted text depending on formatting options provided. * @param {string} text * @param {GoogleChatWebhook.TextFormattingOptions} formattingOptions * @returns {string} * @throws {UnknownError} */ getFormattedMarkup(text: string, formattingOptions?: Types.TextFormattingOptions): string; /** * Returns special mention markup string for Google Chat. * @param {Types.MentionType} type * @param {string} [userId] - id of specific user to mention * @returns {string} * @throws {InvalidArgumentError} */ getMentionMarkup(type: Types.MentionType, userId?: string): string; /** * Returns Google Chat URI markup. * @param {string} uri * @param {string} text * @returns {string} * @throws {Joi.ValidationError | Joi.ValidationError[]} */ getLinkMarkup(uri: string, text?: string): string; /** * Returns void given valid input data. Throws ValidationError given invalid input data. * @param {TextMessage} text * @throws {Joi.ValidationError | Joi.ValidationError[]} */ private validateTextMessage; /** * Returns void given valid data and throws a Joi.ValidationError given invalid data. * @param {CardMessage} card * @returns {Promise} * @throws {Joi.ValidationError | Joi.ValidationError[]} */ private validateCardMessage; }