import * as React from 'react'; export declare type PopoverProps = { /** * Controls the default component or tag being rendered. */ as?: React.ReactNode; /** * The element to attach the popover to. Clones the element's ref to calculate * position relative to the optional `relativeTo` prop or the `renderTo` element. */ anchorElement: React.ReactElement | ((anchorCallbackProps: any) => null); /** * Attempts to keep popover in view clipping edges if too large. */ keepInView?: boolean; /** * Locks external scrollbars when open. */ lockScrollWhileOpen?: boolean; /** * Matches anchor and popover widths. */ matchWidths?: boolean | 'minimum'; /** * Controls rendering of the popover. */ open: boolean; /** * Controls the space between the popover and its anchor. */ offset: number; /** * Called when the popover should close. */ onRequestClose?: () => void; /** * Where to place the popover. */ placement?: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end'; /** * Where to place the popover relative to. Uses `renderTo` by default. */ relativeTo?: any; /** * Where to render the popover into. Accepts an HTML element or selector. * Uses the closest fixed parent or `document.body` by default. This will only * be computed once on initial render. */ renderTo?: HTMLElement | string; /** * Determines if the popover should flip or not when it overflows. */ shouldFlip?: boolean; /** * Calls `as` `innerRef` to calculate popover's bounds. */ innerRef?: any; } & React.HTMLAttributes; export declare const Popover: React.ForwardRefExoticComponent<{ /** * Controls the default component or tag being rendered. */ as?: React.ReactNode; /** * The element to attach the popover to. Clones the element's ref to calculate * position relative to the optional `relativeTo` prop or the `renderTo` element. */ anchorElement: React.ReactElement React.ReactElement React.Component)>) | (new (props: any) => React.Component)> | ((anchorCallbackProps: any) => null); /** * Attempts to keep popover in view clipping edges if too large. */ keepInView?: boolean; /** * Locks external scrollbars when open. */ lockScrollWhileOpen?: boolean; /** * Matches anchor and popover widths. */ matchWidths?: boolean | 'minimum'; /** * Controls rendering of the popover. */ open: boolean; /** * Controls the space between the popover and its anchor. */ offset: number; /** * Called when the popover should close. */ onRequestClose?: () => void; /** * Where to place the popover. */ placement?: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end'; /** * Where to place the popover relative to. Uses `renderTo` by default. */ relativeTo?: any; /** * Where to render the popover into. Accepts an HTML element or selector. * Uses the closest fixed parent or `document.body` by default. This will only * be computed once on initial render. */ renderTo?: HTMLElement | string; /** * Determines if the popover should flip or not when it overflows. */ shouldFlip?: boolean; /** * Calls `as` `innerRef` to calculate popover's bounds. */ innerRef?: any; } & React.HTMLAttributes & React.RefAttributes>;