import { default as React } from 'react'; import { DialogProps } from './Dialog'; import { DialogOptions, DialogShowOptions, DialogType } from './useDialog'; type PartialDialogProps = Omit; type ComponentProps = PartialDialogProps & DialogOptions & { children: React.ReactNode | ((dialog: DialogType) => React.ReactNode); }; export type WithDialogProps = T & { dialog: DialogType; }; export declare function withDialog(Component: React.ComponentType>, withProps?: PartialDialogProps): { ({ children, defaultOpen, onShow, onConfirm, onCancel, ...props }: ComponentProps): import("react/jsx-runtime").JSX.Element; useDialogShow(): (_values: T, _showOptions?: DialogShowOptions) => void; }; export {};