import React from 'react'; import { ButtonProps } from '../../build/Button/type'; declare type DialogAttributes = React.ComponentPropsWithoutRef<'div'>; export interface DialogProps extends Omit { /** * To add user defined props on primary button */ actionPrimaryProps?: ButtonProps; /** * To determine text for primary button */ actionPrimaryText?: string; /** * To add user defined props on secondary button */ actionSecondaryProps?: ButtonProps; /** * To determine text for secondary button */ actionSecondaryText?: string; /** * To toggle visibility on Dialog */ display?: boolean; /** * To provide icon's url */ icon?: string; /** * To provide illustration's url */ illustration?: string; /** * To Show loading animation on primary button */ loadingPrimary?: boolean; /** * To Show loading animation on secondary button */ loadingSecondary?: boolean; /** * To apply vertical button positioning */ longAction?: boolean; /** * To determine modal title */ title?: string; /** * To determine modal z-index */ zIndex?: number; /** * To pass callback when primary button is clicked */ onActionPrimaryClick?: (e: React.MouseEvent | React.KeyboardEvent) => void; /** * To pass callback when secondary button is clicked */ onActionSecondaryClick?: (e: React.MouseEvent | React.KeyboardEvent) => void; /** * To pass callback when Dialog is closed */ onClose?: (e: React.MouseEvent) => void; } export {};