import PropTypes from 'prop-types'; import { anchorRef, bindTrigger, bindContextMenu, bindToggle, bindHover, bindFocus, bindMenu, bindPopover, bindPopper, bindDoubleClick, bindDialog, type Variant, type PopupState as InjectedProps } from "./hooks.js"; export { anchorRef, bindTrigger, bindContextMenu, bindToggle, bindHover, bindFocus, bindMenu, bindPopover, bindPopper, bindDoubleClick, bindDialog, type Variant, type InjectedProps }; export type Props = { popupId?: string; children: (props: InjectedProps) => any; variant: Variant; parentPopupState?: InjectedProps | null; disableAutoFocus?: boolean | null; }; declare function PopupState({ children, popupId, variant, parentPopupState, disableAutoFocus }: Props): any; declare namespace PopupState { var propTypes: { /** * The render function. * * @param {object} props the properties injected by `PopupState`: * * * @returns {React.Node} the content to display */ children: PropTypes.Validator<(...args: any[]) => any>; /** * The `id` property to use for the popup. Will be passed to the render * function as `bindPopup.id`, and also used for the `aria-controls` property * passed to the trigger component via `bindTrigger`. */ popupId: PropTypes.Requireable; /** * Which type of popup you are controlling. Use `'popover'` for `Popover` * and `Menu`; use `'popper'` for `Popper`s. Right now this only affects * whether `aria-controls` or `aria-describedby` is used on the trigger * component. */ variant: PropTypes.Validator; /** * The popupState of the parent menu (for cascading menus) */ parentPopupState: PropTypes.Requireable; /** * Will focus the popup when it opens unless disableAutoFocus is explicitly false. */ disableAutoFocus: PropTypes.Requireable; }; } export = PopupState; //# sourceMappingURL=index.d.ts.map