import { ModalActionType, ModalButtonAlignment, ModalButtonSeverity } from '../enums'; export declare class ModalButton { text: string; action: Function; visible: boolean; severity: ModalButtonSeverity; class: string; type: ModalActionType; alignment: ModalButtonAlignment; constructor(text: string, type: ModalActionType, alignment?: ModalButtonAlignment, severity?: ModalButtonSeverity, action?: Function, visible?: boolean); setType(type: ModalActionType): void; /** * Sets the severity class of the button * @param {ModalButtonSeverity} severity The severity of the button */ setSeverity(severity: ModalButtonSeverity): void; /** * Sets the alignment of the button * @param {ModalButtonAlignment} alignment The alignment of the button */ setAlignment(alignment: ModalButtonAlignment): void; /** * Sets the action which occurs when the button is invoked * @param {Function} action A callback function to execute */ setAction(action: Function): void; /** * Adds the given class to the button's class list * @param {string} className The class to add */ addClass(className: string): void; /** * Removes the given class from the button's class list * @param {string} className The class to remove */ removeClass(className: string): void; /** * Checks the event action function for the given event and throws an error * if the function is null or undefined. * @param {string} eventName The event for which the action is given. * @param {Function} action The action callback function for the event. */ private _checkButtonEventAction(action); /** * Ensures the constructor parameters passed into the Modal Button are valid. * @param {string} text The text to display in the button * @param {ModalActionType} type The type of button */ private _checkButtonInitialization(text, type); }