type UseConfirmDialog = {
    onConfirm?: (id: string) => void;
};
/**
 * A custom hook that manages the state and behavior of a confirmation dialog.
 *
 * @template TData - The type of the data associated with the dialog.
 *
 * @param {UseConfirmDialog} param0 - An object containing the onConfirm callback.
 * @param {Function} [param0.onConfirm] - A callback function that is called when the dialog is confirmed.
 *
 * @returns {Object} An object containing the dialog state and handlers.
 * @returns {string} id - The current id associated with the dialog.
 * @returns {TData | null} data - The current data associated with the dialog.
 * @returns {Function} handleDialogOpen - A function to open the dialog with a specific id and optional data.
 * @returns {Object} dialogProps - An object containing the dialog properties and handlers.
 */
export declare function useConfirmDialog<TData = Record<string, unknown>>({ onConfirm: onConfirmProp }: UseConfirmDialog): {
    id: string;
    data: TData | null;
    handleDialogClose: () => void;
    handleDialogOpen: (id: string, data?: any) => void;
    dialogProps: {
        open: boolean;
        onOpenChange: (open: boolean) => void;
        onCancel: () => void;
        onConfirm: () => void;
    };
};
export {};
//# sourceMappingURL=use-confirm-dialog.d.ts.map