import React from 'react'; import { DefaultProps, Selectors } from '@asuikit/styles'; import { MantineTransition } from '../Transition'; import { PaperProps } from '../Paper'; import useStyles from './Dialog.styles'; export type DialogStylesNames = Selectors; export interface DialogProps extends DefaultProps, Omit { variant?: string; /** If set dialog will not be unmounted from the DOM when it is hidden, display: none styles will be added instead */ keepMounted?: boolean; /** Display close button at the top right corner */ withCloseButton?: boolean; /** Called when close button is clicked */ onClose?(): void; /** Dialog position (fixed in viewport) */ position?: { top?: string | number; left?: string | number; bottom?: string | number; right?: string | number; }; /** Dialog content */ children?: React.ReactNode; /** Dialog container z-index */ zIndex?: React.CSSProperties['zIndex']; /** Opened state */ opened: boolean; /** Appear/disappear transition */ transition?: MantineTransition; /** Duration in ms of modal transitions, set to 0 to disable all animations */ transitionDuration?: number; /** Transition timing function, defaults to theme.transitionTimingFunction */ transitionTimingFunction?: string; /** Dialog width */ size?: string | number; } export declare function DialogBody(props: DialogProps): React.JSX.Element; export declare const Dialog: React.ForwardRefExoticComponent>; //# sourceMappingURL=Dialog.d.ts.map