/** @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, Text, View } from "react-native"; import { type LayoutPosition } from "@/native/hooks"; import type { ItemTextProps, PortalProps, ScrollDownButtonProps, ScrollUpButtonProps, SharedRootContext, TriggerRef, ViewportProps } from "./types"; interface IRootContext extends SharedRootContext { open: boolean; onOpenChange: (open: boolean) => void; triggerPosition: LayoutPosition | null; setTriggerPosition: (triggerPosition: LayoutPosition | null) => void; contentLayout: LayoutRectangle | null; setContentLayout: (contentLayout: LayoutRectangle | null) => void; nativeID: string; } declare const Root: React.ForwardRefExoticComponent void; onOpenChange?: (open: boolean) => void; disabled?: boolean; dir?: "ltr" | "rtl"; name?: string; required?: boolean; } & React.RefAttributes>; declare function useRootContext(): IRootContext; declare const Trigger: React.ForwardRefExoticComponent, "ref"> & { asChild?: boolean; } & { onKeyDown?: (ev: React.KeyboardEvent) => void; onKeyUp?: (ev: React.KeyboardEvent) => void; } & React.RefAttributes>; declare const Value: React.ForwardRefExoticComponent>; /** * @warning when using a custom ``, you might have to adjust the Content's sideOffset. */ declare function Portal({ forceMount, hostName, children }: PortalProps): import("react/jsx-runtime").JSX.Element | null; declare const Overlay: React.ForwardRefExoticComponent, "ref"> & { asChild?: boolean; } & { onKeyDown?: (ev: React.KeyboardEvent) => void; onKeyUp?: (ev: React.KeyboardEvent) => void; } & { closeOnPress?: boolean; } & React.RefAttributes>; /** * @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 Item: React.ForwardRefExoticComponent, "ref"> & { asChild?: boolean; } & { onKeyDown?: (ev: React.KeyboardEvent) => void; onKeyUp?: (ev: React.KeyboardEvent) => void; } & { value: string; label: string; closeOnPress?: boolean; } & React.RefAttributes>; declare function useItemContext(): { itemValue: string; label: string; }; declare const ItemText: React.ForwardRefExoticComponent>; declare const ItemIndicator: React.ForwardRefExoticComponent>; declare const Group: React.ForwardRefExoticComponent>; declare const Label: React.ForwardRefExoticComponent>; declare const Separator: React.ForwardRefExoticComponent>; declare const ScrollUpButton: ({ children }: ScrollUpButtonProps) => import("react/jsx-runtime").JSX.Element; declare const ScrollDownButton: ({ children }: ScrollDownButtonProps) => import("react/jsx-runtime").JSX.Element; declare const Viewport: ({ children }: ViewportProps) => import("react/jsx-runtime").JSX.Element; export { Content, Group, Item, ItemIndicator, ItemText, Label, Overlay, Portal, Root, ScrollDownButton, ScrollUpButton, Separator, Trigger, useItemContext, useRootContext, Value, Viewport, }; //# sourceMappingURL=select.d.ts.map