/** * Keeps the inspector sidebar's scroll position across re-renders that rebuild * the field list (collapsing a section, switching a block's view mode), which * otherwise snap it back to the top. * * Selecting a different block deliberately does not restore — a new block * starts at the top rather than inheriting the previous one's offset. */ export declare function useSidebarScrollPreservation(itemSelector: unknown, containerSelector?: string): void;