import * as React from 'react'; import { CloseProps, CloseRef, ContentProps, ContentRef, DescriptionProps, DescriptionRef, OverlayProps, OverlayRef, PortalProps, RootProps, RootRef, TitleProps, TitleRef, TriggerProps, TriggerRef, RootContext } from './index.mjs'; import './dialog'; import '@rn-primitives/types'; type RootComponentProps = RootProps & React.RefAttributes; declare const Root: { ({ asChild, open: openProp, defaultOpen, onOpenChange: onOpenChangeProp, ref, ...viewProps }: RootComponentProps): React.JSX.Element; displayName: string; }; declare function useRootContext(): RootContext & { nativeID: string; }; type TriggerComponentProps = TriggerProps & React.RefAttributes; declare const Trigger: { ({ asChild, onPress: onPressProp, disabled, ref, ...props }: TriggerComponentProps): React.JSX.Element; displayName: string; }; /** * @warning when using a custom ``, you might have to adjust the Content's sideOffset to account for nav elements like headers. */ declare function Portal({ forceMount, hostName, children }: PortalProps): React.JSX.Element | null; type OverlayComponentProps = OverlayProps & React.RefAttributes; declare const Overlay: { ({ asChild, forceMount, closeOnPress, onPress: OnPressProp, ref, ...props }: OverlayComponentProps): React.JSX.Element | null; displayName: string; }; type ContentComponentProps = ContentProps & React.RefAttributes; declare const Content: { ({ asChild, forceMount, ref, ...props }: ContentComponentProps): React.JSX.Element | null; displayName: string; }; type CloseComponentProps = CloseProps & React.RefAttributes; declare const Close: { ({ asChild, onPress: onPressProp, disabled, ref, ...props }: CloseComponentProps): React.JSX.Element; displayName: string; }; type TitleComponentProps = TitleProps & React.RefAttributes; declare const Title: { ({ ref, ...props }: TitleComponentProps): React.JSX.Element; displayName: string; }; type DescriptionComponentProps = DescriptionProps & React.RefAttributes; declare const Description: { ({ ref, ...props }: DescriptionComponentProps): React.JSX.Element; displayName: string; }; export { Close, Content, Description, Overlay, Portal, Root, Title, Trigger, useRootContext };