/** Options that PageUp/PageDown move the highlight by in an open menu */ export declare const MENU_PAGE_STEP: number; /** Max height values for listbox/dropdown menus by size */ export declare const MENU_MAX_HEIGHT: Readonly<{ xs: string; sm: string; md: string; lg: string; xl: string; }>; /** * Get the max height for a listbox/dropdown menu based on size. * @param size - The size variant (defaults to "md" when undefined) * @returns The max height in rem units */ export declare function getMenuMaxHeight( size?: "xs" | "sm" | "md" | "lg" | "xl", ): string; /** Menu item heights (px) by size */ export declare const MENU_ITEM_HEIGHT: Readonly<{ xs: number; sm: number; md: number; lg: number; xl: number; }>; /** Fluid menu item height (px). Same height for every size. */ export declare const FLUID_MENU_ITEM_HEIGHT: number; /** * Get the menu item height in pixels for a listbox/dropdown size. * @param size - The size variant (defaults to "md" when undefined) * @param options - Pass `fluid: true` for FLUID_MENU_ITEM_HEIGHT * @returns The item height in pixels */ export declare function getMenuItemHeight( size?: "xs" | "sm" | "md" | "lg" | "xl", options?: { fluid?: boolean }, ): number; /** * Whether a listbox menu's options should be windowed. */ export declare function shouldVirtualizeMenu(options: { /** The consumer's own items, not the filtered subset. */ items: ArrayLike; virtualize: boolean | object | undefined; }): boolean; /** * Handle the `invalid` event of a required list box's validated input. * Returns whether the field should show its invalid state: after a submit * attempt, not when code calls `checkValidity()`. On a submit attempt, the * field is focused if it's the first invalid control in the form. */ export declare function handleRequiredInvalid( event: Event, options: { focusTarget: HTMLElement | null | undefined; /** Cancel the event even when no state shows, for a hidden proxy input. */ proxy?: boolean; }, ): boolean;