import { type RefObject } from 'react'; import type { OperatorState } from './operators.js'; export declare const OPERATOR_ROW_ATTRIBUTE = "data-operator-row"; type MenuItemLayout = { /** Whether every item shows the operator name below the statement. */ stacked: boolean; /** Operators whose statement is cut off with an ellipsis. */ truncatedOperators: ReadonlySet; }; /** * Builds the `contentSignature` for {@link useMenuItemLayout}. Disabled items * render their statement as plain text instead of a `FilterStatement`, which * can change its width without resizing the menu, so the disabled state is part * of it. */ export declare function getMenuItemLayoutSignature(filterKey: string, value: string | number | boolean, operatorStates: readonly Pick[]): string; /** * Decides the layout of all operator items at once. The items stack when the * widest statement and its operator name do not fit next to each other in the * widest menu the viewport or `max-width` allows, or in the actual width of a * menu with a fixed width such as the mobile panel. A single long statement * therefore switches every item, not just its own. `contentSignature` changes * whenever the item content changes, so the layout is measured again. */ export declare function useMenuItemLayout(groupRef: RefObject, contentSignature: string, hasFixedWidth: boolean): MenuItemLayout; export {}; //# sourceMappingURL=useMenuItemLayout.d.ts.map