import React, { ReactNode } from 'react'; export type TConfirmOptions = { title: ReactNode; message: ReactNode; confirmationText: ReactNode; cancellationText: ReactNode; }; type TConfirm = (options?: Partial) => Promise; export declare const ConfirmProvider: React.FC<{ children?: ReactNode; }>; /** * Shows a confirmation dialog and returns a Promise representing the user choice (resolves with true on confirmation and with false on cancellation). * * Inspired by https://www.npmjs.com/package/material-ui-confirm * * Usage: * ``` * const {confirm} = useConfirm(); * * confirm({ * title: 'Are you sure you want to delete this?', * confirmationText: 'Delete' * }).then(confirmed => { * // ... * }); * ``` */ export declare const useConfirm: () => { confirm: TConfirm; }; export {};