import { n as Scope } from "../create-context-CKMcRGBM.js"; import { t as IDirection } from "../direction.types-Cxja_joX.js"; import { t as Primitive } from "../primitive-elements-fih1b6xg.js"; import { t as DismissableLayer } from "../dismissable-layer-DkA49cNy.js"; import { t as Root } from "../visibility-hidden-C-yHbsod.js"; import * as React$1 from "react"; //#region src/navigation-menu/navigation-menu.types.d.ts declare namespace INavigationMenu { export type IScoped = TProps & { __scopeNavigationMenu?: Scope; }; export type Orientation = 'vertical' | 'horizontal'; export type NavigationMenuElement = React$1.ComponentRef; export type NavigationMenuTriggerElement = React$1.ComponentRef; export type FocusGroupItemElement = React$1.ComponentRef; export type NavigationMenuContentImplElement = React$1.ComponentRef; export type NavigationMenuViewportElement = React$1.ComponentRef; export type FocusProxyElement = React$1.ComponentRef; type DismissableLayerProps = React$1.ComponentPropsWithoutRef; type PrimitiveNavProps = React$1.ComponentPropsWithoutRef; type PrimitiveDivProps = React$1.ComponentPropsWithoutRef; export interface IContentImplPrivateProps { value: string; triggerRef: React$1.RefObject; focusProxyRef: React$1.RefObject; wasEscapeCloseRef: React$1.RefObject; onContentFocusOutside(): void; onRootContentClose(): void; } export interface IContentImplProps extends Omit, IContentImplPrivateProps {} export interface IViewportContentMounterProps extends IContentImplProps { forceMount?: true | undefined; } export type ViewportContentMounterElement = NavigationMenuContentImplElement; export type IContentData = { ref?: React$1.Ref; } & IViewportContentMounterProps; export interface IContext { isRootMenu: boolean; value: string; previousValue: string; baseId: string; dir: IDirection.Kind; orientation: Orientation; rootNavigationMenu: NavigationMenuElement | null; indicatorTrack: HTMLDivElement | null; onIndicatorTrackChange(indicatorTrack: HTMLDivElement | null): void; viewport: NavigationMenuViewportElement | null; onViewportChange(viewport: NavigationMenuViewportElement | null): void; onViewportContentChange(contentValue: string, contentData: IContentData): void; onViewportContentRemove(contentValue: string): void; onTriggerEnter(itemValue: string): void; onTriggerLeave(): void; onContentEnter(): void; onContentLeave(): void; onItemSelect(itemValue: string): void; onItemDismiss(): void; } export interface IItemContext { value: string; triggerRef: React$1.RefObject; contentRef: React$1.RefObject; focusProxyRef: React$1.RefObject; wasEscapeCloseRef: React$1.RefObject; onEntryKeyDown(): void; onFocusProxyEnter(side: 'start' | 'end'): void; onRootContentClose(): void; onContentFocusOutside(): void; } export interface IProviderPrivateProps { isRootMenu: boolean; scope: Scope; children: React$1.ReactNode; orientation: Orientation; dir: IDirection.Kind; rootNavigationMenu: NavigationMenuElement | null; value: string; onTriggerEnter(itemValue: string): void; onTriggerLeave?(): void; onContentEnter?(): void; onContentLeave?(): void; onItemSelect(itemValue: string): void; onItemDismiss(): void; } export interface IProviderProps extends IProviderPrivateProps {} export interface IProps extends Omit, PrimitiveNavProps { value?: string; defaultValue?: string; onValueChange?: (value: string) => void; dir?: IDirection.Kind; orientation?: Orientation; delayDuration?: number; skipDelayDuration?: number; } export interface ISubProps extends Omit, PrimitiveDivProps { value?: string; defaultValue?: string; onValueChange?: (value: string) => void; orientation?: Orientation; } export {}; } //#endregion export { INavigationMenu };