import { default as React } from 'react'; import { DialogProps as MuiDialogProps } from '@mui/material/Dialog'; export type CopyObject = { close_aria?: string; title: string; }; type OwnedMuiProps = 'disableRestoreFocus' | 'onFocus' | 'open' | 'slotProps' | 'slots' | 'TransitionComponent' | 'TransitionProps'; export interface DialogProps extends Omit { className?: string; copy: CopyObject; disablePrimaryButton?: boolean; /** Render the footer action buttons. Default true; content-only dialogs (e.g. the insights survey modal) pass false. */ showActions?: boolean; isOpen: boolean; onClose: (event?: unknown, reason?: string) => void; onPrimaryAction?: () => void; onSecondaryAction?: () => void; primaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'; primaryText?: string; /** Where focus goes on close. Takes precedence over the element that opened the dialog. */ returnFocusTo?: React.RefObject; secondaryColor?: 'primary' | 'inherit' | 'secondary' | 'success' | 'error' | 'info' | 'warning'; secondaryText?: string; } declare const Dialog: React.FC>; export default Dialog;