import { LayoutPosition } from '@rn-primitives/hooks'; import * as React from 'react'; import { LayoutRectangle } from 'react-native'; import { ContentProps, ContentRef, GroupProps, GroupRef, ItemProps, ItemRef, ItemIndicatorProps, ItemIndicatorRef, ItemTextProps, ItemTextRef, LabelProps, LabelRef, OverlayProps, OverlayRef, PortalProps, RootProps, RootRef, ScrollDownButtonProps, ScrollUpButtonProps, SeparatorProps, SeparatorRef, TriggerProps, TriggerRef, ValueProps, ValueRef, ViewportProps, SharedRootContext } from './index.js'; import './select'; import '@rn-primitives/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; } type RootComponentProps = RootProps & React.RefAttributes; declare const Root: { ({ asChild, value: valueProp, defaultValue, onValueChange: onValueChangeProp, onOpenChange: onOpenChangeProp, disabled, ref, ...viewProps }: RootComponentProps): React.JSX.Element; displayName: string; }; declare function useRootContext(): IRootContext; type TriggerComponentProps = TriggerProps & React.RefAttributes; declare const Trigger: { ({ asChild, onPress: onPressProp, disabled, ref, ...props }: TriggerComponentProps): React.JSX.Element; displayName: string; }; type ValueComponentProps = ValueProps & React.RefAttributes; declare const Value: { ({ asChild, placeholder, ref, ...props }: ValueComponentProps): React.JSX.Element; displayName: string; }; /** * @warning when using a custom ``, you might have to adjust the Content's sideOffset. */ declare function Portal({ forceMount, hostName, children }: PortalProps): React.JSX.Element | null; type OverlayComponentProps = OverlayProps & React.RefAttributes; declare const Overlay: { ({ asChild, forceMount, onPress: OnPressProp, closeOnPress, ref, ...props }: OverlayComponentProps): React.JSX.Element | null; displayName: string; }; type ContentComponentProps = ContentProps & React.RefAttributes; declare const Content: { ({ asChild, forceMount, align, side, sideOffset, alignOffset, avoidCollisions, onLayout: onLayoutProp, insets, style, disablePositioningStyle, position: _position, ref, ...props }: ContentComponentProps): React.JSX.Element | null; displayName: string; }; type ItemComponentProps = ItemProps & React.RefAttributes; declare const Item: { ({ asChild, value: itemValue, label, onPress: onPressProp, disabled, closeOnPress, ref, ...props }: ItemComponentProps): React.JSX.Element; displayName: string; }; declare function useItemContext(): { itemValue: string; label: string; }; type ItemTextComponentProps = ItemTextProps & React.RefAttributes; declare const ItemText: { ({ asChild, ref, ...props }: ItemTextComponentProps): React.JSX.Element; displayName: string; }; type ItemIndicatorComponentProps = ItemIndicatorProps & React.RefAttributes; declare const ItemIndicator: { ({ asChild, forceMount, ref, ...props }: ItemIndicatorComponentProps): React.JSX.Element | null; displayName: string; }; type GroupComponentProps = GroupProps & React.RefAttributes; declare const Group: { ({ asChild, ref, ...props }: GroupComponentProps): React.JSX.Element; displayName: string; }; type LabelComponentProps = LabelProps & React.RefAttributes; declare const Label: { ({ asChild, ref, ...props }: LabelComponentProps): React.JSX.Element; displayName: string; }; type SeparatorComponentProps = SeparatorProps & React.RefAttributes; declare const Separator: { ({ asChild, decorative, ref, ...props }: SeparatorComponentProps): React.JSX.Element; displayName: string; }; declare const ScrollUpButton: ({ children }: ScrollUpButtonProps) => React.JSX.Element; declare const ScrollDownButton: ({ children }: ScrollDownButtonProps) => React.JSX.Element; declare const Viewport: ({ children }: ViewportProps) => React.JSX.Element; export { Content, Group, Item, ItemIndicator, ItemText, Label, Overlay, Portal, Root, ScrollDownButton, ScrollUpButton, Separator, Trigger, Value, Viewport, useItemContext, useRootContext };