/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ /** Reload admission and focus recovery remain synchronous at event boundaries. */ export declare function useDocumentReloadRecovery({ mutationsBlocked, mutationIssue, onReloadDocument, isBusy, }: { mutationsBlocked: boolean; mutationIssue?: string | null; onReloadDocument?: () => void | Promise; isBusy: boolean; }): { formRef: import("react").RefObject; warningRef: import("react").RefObject; mutationBlockedRef: import("react").RefObject; discarding: boolean; reloadFailed: boolean; requestDiscard: () => void; captureFocusBeforeBusy: () => void; };