import _Vue from 'vue'; export declare type ShDialogConfig = { /** * Dialog title */ title?: string; /** * Message text */ message: string; /** * Adds an icon on the left side depending on the type or icon */ hasIcon?: boolean; /** * Icon name if hasIcon, optional */ icon?: string; /** * Icon pack to use if hasIcon, optional */ iconPack?: string; /** * Dialog\'s size, optional */ size?: 'is-small' | 'is-medium' | 'is-large'; /** * Custom animation (transition name) */ animation?: string; /** * Text of the confirm button */ confirmText?: string; /** * Text of the cancel button */ cancelText?: string; /** * Can close dialog by clicking cancel button, pressing escape or clicking outside */ canCancel?: boolean | Array; /** * Callback function when the confirm button is clicked */ onConfirm?: (value: string) => any; /** * Callback function when the dialog is canceled (cancel button is clicked / pressed escape / clicked outside) */ onCancel?: () => any; /** * Type (color) of the confirm button (and the icon if hasIcon) */ type?: any; /** * clip to remove the <body> scrollbar, keep to have a non scrollable scrollbar * to avoid shifting background, but will set <body> to position fixed, might break some layouts */ scroll?: 'clip' | 'keep'; } type ShPromptDialogConfig = ShDialogConfig & { /** * Prompt only: input's attributes */ inputAttrs?: any; }; export declare const ShDialog: { alert: (params: ShDialogConfig | string) => any; confirm: (params: ShDialogConfig) => any; prompt: (params: ShPromptDialogConfig) => any; } declare type ShModalConfig = { content?: string; component?: typeof _Vue; parent?: _Vue; props?: any; events?: { [index: string]: Function }; width?: string | number; hasModalCard?: boolean; animation?: string; canCancel?: boolean | Array; onCancel?: () => any; scroll?: 'clip' | 'keep'; } export declare const ShModalProgrammatic: { open: (params: ShModalConfig | string) => any; }