import { ConfirmationDialogProps } from "./ConfirmationDialog.js"; import React from "react"; //#region src/ConfirmationDialog/useConfirm.d.ts type ConfirmOptions = Omit & { content: React.ReactNode; }; /** * This hook takes no parameters and returns an `async` function, `confirm`. When `confirm` * is called, it shows the confirmation dialog. When the dialog is dismissed, a promise is * resolved with `true` or `false` depending on whether or not the confirm button was used. */ declare function useConfirm(): (options: ConfirmOptions) => Promise; //#endregion export { ConfirmOptions, useConfirm };