import { MenuButtonProps } from '@mui/base'; import { ForwardRefExoticComponent, ReactElement, RefAttributes } from 'react'; /** * A helper function to simplify the creation of a menu trigger button. * It automatically assigns `props` and `ref` to the given `component`. * To optimize performance, it caches the cloned element and only clones it again * when the `component` or its `ref` changes. */ export declare function createTriggerButton(component: ReactElement): ForwardRefExoticComponent>; /** * Determines if a given React component is a forward-ref component. * The function checks if the component or any of its nested types * is wrapped in `forwardRef`. It recursively traverses through the component's * `type` to handle cases where the component may be memoized or wrapped multiple times. */ export declare function isForwardRefComponent(component: any): component is ForwardRefExoticComponent>;