export type PopoverPlacement = | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'; export type PopoverAnchorNative = React.RefObject; // ToggleEvent is part of the Popover API but not yet in TypeScript's DOM types export interface PopoverToggleEvent extends Event { newState: 'open' | 'closed'; oldState: 'open' | 'closed'; }