export type DialogShowOptions = { onConfirm?: (values: R) => void; onCancel?: () => void; }; export type DialogOptions = DialogShowOptions & { defaultOpen?: boolean; onShow?: (values: T) => void; }; export type DialogType = ReturnType>; export declare function useDialog(options?: DialogOptions): { props: { ref: import('react').RefObject; open: boolean; setTriggerProps: import('react').Dispatch>>; requestClose: () => void; }; triggerProps: Record; /** * @deprecated The property will be removed in the next major release */ trigger: { onClick: (values: T, showOptions?: DialogShowOptions) => void; }; data: T | undefined; show: (values: T, showOptions?: DialogShowOptions) => void; cancel: () => void; confirm: (values: R) => void; preventClose: (promise: Promise) => Promise; };