/** @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 { Text, View } from "react-native"; import type { ItemTextProps, PortalProps, ScrollDownButtonProps, ScrollUpButtonProps, SharedRootContext, TriggerRef, ViewportProps } from "./types"; /** * @web Parameter of `onValueChange` has the value of `value` for the `value` and the `label` of the selected Option * @ex When an Option with a label of Green Apple, the parameter passed to `onValueChange` is { value: 'green-apple', label: 'green-apple' } */ declare const Root: React.ForwardRefExoticComponent void; onOpenChange?: (open: boolean) => void; disabled?: boolean; dir?: "ltr" | "rtl"; name?: string; required?: boolean; } & React.RefAttributes>; declare function useRootContext(): SharedRootContext & { open: boolean; onOpenChange: (open: boolean) => void; }; 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>; declare function Portal({ container, children }: PortalProps): import("react/jsx-runtime").JSX.Element; declare const Overlay: React.ForwardRefExoticComponent, "ref"> & { asChild?: boolean; } & { onKeyDown?: (ev: React.KeyboardEvent) => void; onKeyUp?: (ev: React.KeyboardEvent) => void; } & { closeOnPress?: boolean; } & React.RefAttributes>; 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 & React.RefAttributes>; declare const ItemIndicator: React.ForwardRefExoticComponent>; declare const Group: React.ForwardRefExoticComponent>; declare const Label: React.ForwardRefExoticComponent>; declare const Separator: React.ForwardRefExoticComponent>; declare const ScrollUpButton: (props: ScrollUpButtonProps) => import("react/jsx-runtime").JSX.Element; declare const ScrollDownButton: (props: ScrollDownButtonProps) => import("react/jsx-runtime").JSX.Element; declare const Viewport: (props: 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.web.d.ts.map