11 lines
351 B

declare interface InitialStateType {
isActive: boolean;
proceed: (value: unknown) => void;
cancel: (value: unknown) => void;
}
declare interface ConfirmLeaveReturnType extends InitialStateType {
onConfirm: () => Promise<boolean>;
resetConfirmation: () => void;
}
declare const useConfirm: () => ConfirmLeaveReturnType;
export default useConfirm;