type DialogContextContent = { open: boolean; setOpen: (open: boolean) => void; }; type DialogOptionalProps = { dialogProps?: Partial; loading?: boolean; openInitially?: boolean; wide?: boolean; }; type DialogProps = DialogOptionalProps; type DialogForwardedRefContent = DialogContextContent; /** DialogActionGroup */ type ButtonClickEventHandler = Exclude< ContainedButtonProps['onClick'], undefined >; type DialogActionGroupOptionalProps = { cancelChildren?: ContainedButtonProps['children']; cancelProps?: Partial; closeOnProceed?: boolean; loading?: boolean; onCancel?: ExtendableEventHandler; onProceed?: ExtendableEventHandler; proceedChildren?: ContainedButtonProps['children']; proceedColour?: ContainedButtonProps['background']; proceedProps?: Partial; showCancel?: boolean; }; type DialogActionGroupProps = DialogActionGroupOptionalProps; /** DialogHeader */ type DialogHeaderOptionalProps = { onClose?: ExtendableEventHandler; showClose?: boolean; }; type DialogHeaderProps = DialogHeaderOptionalProps; /** DialogWithHeader */ type DialogWithHeaderProps = DialogProps & DialogHeaderProps & { header: import('react').ReactNode; };