import type { IRefineContextOptions } from "../../../contexts/refine/types";
import type { IUnsavedWarnContext } from "../../../contexts/unsavedWarn/types";
type UseWarnAboutChangeType = () => {
    warnWhenUnsavedChanges: IRefineContextOptions["warnWhenUnsavedChanges"];
    warnWhen: NonNullable<IUnsavedWarnContext["warnWhen"]>;
    setWarnWhen: NonNullable<IUnsavedWarnContext["setWarnWhen"]>;
};
/**
 * When you have unsaved changes and try to leave the current page, **refine** shows a confirmation modal box.
 * To activate this feature, set the `warnWhenUnsavedChanges` to `true`.
 *
 * @see {@link https://refine.dev/docs/api-reference/core/components/refine-config#warnwhenunsavedchanges} for more details.
 */
export declare const useWarnAboutChange: UseWarnAboutChangeType;
export {};
//# sourceMappingURL=index.d.ts.map