import type { ViewRef } from '../../helpers/internal/types/index.js'; import * as SubMenuPrimitives from '../../primitives/sub-menu/index.js'; import { useSubMenuAnimation } from './sub-menu.animation.js'; import type { SubMenuContentProps, SubMenuRootProps, SubMenuTriggerIndicatorProps, SubMenuTriggerProps } from './sub-menu.types.js'; declare const useSubMenu: () => SubMenuPrimitives.ISubMenuContext; /** * Compound SubMenu component with sub-components. * * @component SubMenu - Root container that manages open/close state and * provides animation settings context to children. * * @component SubMenu.Background - Absolute-fill background container behind * the open sub-menu surface, painting the surface coat and, with no children, * the layer chosen by the active library theme (glass theme renders a blur * layer). Accepts children to host custom content such as gradients with the * container's positioning and clipping applied. Replaceable via the * `background` prop on SubMenu. * * @component SubMenu.Trigger - Pressable item that toggles the submenu, * styled like a menu item. * * @component SubMenu.TriggerIndicator - Animated indicator (default: chevron-right) * that rotates when the submenu opens/closes. Place inside SubMenu.Trigger. * * @component SubMenu.Content - Absolutely positioned content that animates * its height when the submenu opens/closes. */ declare const SubMenu: import("react").ForwardRefExoticComponent> & { Background: import("react").ForwardRefExoticComponent>; Trigger: import("react").ForwardRefExoticComponent>; TriggerIndicator: import("react").ForwardRefExoticComponent>; Content: import("react").ForwardRefExoticComponent>; }; export { useSubMenu, useSubMenuAnimation }; export default SubMenu; //# sourceMappingURL=sub-menu.d.ts.map