import { DialogResultType } from "../components/x-dialog/component";
import { DialogType } from "../components";
export interface DialogOptions {
    type?: DialogType;
    header?: string;
    message: string;
    interval?: number;
    buttonCloseText?: string;
    buttonConfirmYesText?: string;
    buttonConfirmNoText?: string;
    buttonConfirmLoading?: boolean;
    buttonConfirmResult?: boolean;
}
export interface IDialog {
    (options: DialogOptions): Promise<DialogResultType>;
    fromResponse(response: any): Promise<any>;
    success(options: DialogOptions): Promise<DialogResultType>;
    danger(options: DialogOptions): Promise<DialogResultType>;
    exception(options: DialogOptions): Promise<DialogResultType>;
    error(options: DialogOptions): Promise<DialogResultType>;
    invalid(options: DialogOptions): Promise<DialogResultType>;
    missing(options: DialogOptions): Promise<DialogResultType>;
    payment(options: DialogOptions): Promise<DialogResultType>;
    unknown(options: DialogOptions): Promise<DialogResultType>;
    confirm(options: DialogOptions): Promise<DialogResultType>;
    failure(options: DialogOptions): Promise<DialogResultType>;
    noResult(options: DialogOptions): Promise<DialogResultType>;
    forbidden(options: DialogOptions): Promise<DialogResultType>;
}
export declare class DialogService {
    /**
     * Action handler from message response
     *
     * @param action
     * @returns
     */
    private onAction;
    /**
     * Create modal element
     *
     * @returns
     */
    private createModal;
    /**
     * Create dialog element
     *
     * @param options
     * @returns
     */
    private createDialog;
    /**
     * Open dialog and show message
     *
     * @param options
     * @returns
     */
    private open;
    /**
     * Create response dialog from request
     *
     * @param response
     * @returns
     */
    private fromResponse;
    /**
     * Create service
     *
     * @returns
     */
    static create(): IDialog;
}
export declare const Dialog: IDialog;
