/** * Locks document scroll when enabled. * Uses reference counting so nested dialogs share a single lock — * only the first lock applies `overflow: hidden`, and only the last * unlock restores the original styles. Compensates for scrollbar width * to prevent layout shift. */ export declare function useScrollLock(enabled: boolean, ownerDocument?: Document | null): void;