/** @jsxImportSource nativewind */ /** * Source code copied and adapted from: * https://github.com/roninoss/rn-primitives * License: MIT (c) 2024 RoninOSS */ import * as React from "react"; import { type LayoutRectangle, View } from "react-native"; import { type LayoutPosition } from "@/native/hooks"; import type { PortalProps, RootProps, ViewportProps } from "./types"; interface INavigationMenuRootContext extends RootProps { triggerPosition: LayoutPosition | null; setTriggerPosition: (triggerPosition: LayoutPosition | null) => void; contentLayout: LayoutRectangle | null; setContentLayout: (contentLayout: LayoutRectangle | null) => void; nativeID: string; } declare const Root: React.ForwardRefExoticComponent void; delayDuration?: number; skipDelayDuration?: number; dir?: "ltr" | "rtl"; orientation?: "horizontal" | "vertical"; } & React.RefAttributes>; declare function useRootContext(): INavigationMenuRootContext; declare const List: React.ForwardRefExoticComponent>; declare const Item: React.ForwardRefExoticComponent>; declare function useItemContext(): import("react-native").ViewProps & { asChild?: boolean; } & { value: string | undefined; } & { nativeID: string; }; declare const Trigger: React.ForwardRefExoticComponent, "ref"> & { asChild?: boolean; } & { onKeyDown?: (ev: React.KeyboardEvent) => void; onKeyUp?: (ev: React.KeyboardEvent) => void; } & React.RefAttributes>; /** * @warning when using a custom ``, you will have to adjust the Content's sideOffset to account for nav elements like headers. */ declare function Portal({ forceMount, hostName, children }: PortalProps): import("react/jsx-runtime").JSX.Element | null; /** * @info `position`, `top`, `left`, and `maxWidth` style properties are controlled internally. Opt out of this behavior by setting `disablePositioningStyle` to `true`. */ declare const Content: React.ForwardRefExoticComponent>; declare const Link: React.ForwardRefExoticComponent, "ref"> & { asChild?: boolean; } & { onKeyDown?: (ev: React.KeyboardEvent) => void; onKeyUp?: (ev: React.KeyboardEvent) => void; } & { active?: boolean; } & React.RefAttributes>; declare const Viewport: React.ForwardRefExoticComponent>; declare const Indicator: React.ForwardRefExoticComponent>; export { Content, Indicator, Item, Link, List, Portal, Root, Trigger, useItemContext, useRootContext, Viewport, }; //# sourceMappingURL=navigation-menu.d.ts.map