export declare const DEFAULT_VIEWPORT_GAP = 10; declare type StartExpandingMenuOnScrollOptions = { menuWrapper: HTMLDivElement | null; menu: HTMLDivElement | null; menuScrollPane: HTMLDivElement | null; menuItemsWrapper: HTMLDivElement | null; viewportGap: number; }; /** * Sets up a scroll listener to expand the menu on scroll. * * This behaviour happens when the menu is not using its maximum height * because of initially prioritizing: * - better placement (below a button for a menu button) * - better alignment (for a custom select menu) */ export declare function startExpandingMenuOnScroll({ menuWrapper, menu, menuScrollPane, menuItemsWrapper, viewportGap, }: StartExpandingMenuOnScrollOptions): () => void; declare type ScrollMenuItemIntoViewOptions = { menuItem: HTMLDivElement | null; menu: HTMLDivElement | null; menuScrollPane: HTMLDivElement | null; scrollIndicator: HTMLDivElement | null; }; export declare function scrollMenuItemIntoView({ menuItem, menu, menuScrollPane, scrollIndicator, }: ScrollMenuItemIntoViewOptions): void; export {};