export type PageLock = { isLocked: false; } | { isLocked: true; message?: string; }; export type PageLocks = { forwardLock: PageLock; lockForward: (message?: string) => void; unlockForward: () => void; previousLock: PageLock; lockPrevious: (message?: string) => void; unlockPrevious: () => void; lockAll: (message?: string) => void; unlockAll: () => void; }; export declare const usePageLock: () => PageLocks;