import type { Options } from '@popperjs/core/lib/types'; import { type PropsWithChildren, type RefCallback } from 'react'; import { type MenuProps } from './menu'; import './menu.css'; type Position = { x: number; y: number; z?: number; }; type ReferenceElement = (setRef: RefCallback) => React.ReactNode; type AbsoluteMenu = { position: Position; referenceElement?: never; }; type RelativeMenu = { position?: never; referenceElement: ReferenceElement; }; export type PositionableMenuProps = { offset?: [number, number]; placement?: Options['placement']; open: boolean; preventViewportOverflow?: boolean; } & MenuProps & (AbsoluteMenu | RelativeMenu); /** * Wrapper component for * The wrapper allows you to define visibility via the open prop * and also position the menu relatively against another html element * or absolutely by a position. */ export declare const PositionableMenu: React.FC>; export {}; //# sourceMappingURL=positionable.d.ts.map