import * as DialogPrimitive from '@radix-ui/react-dialog'; import React from 'react'; interface WithFadeFromProps { snapPoints: (number | string)[]; fadeFromIndex: number; } interface WithoutFadeFromProps { snapPoints?: (number | string)[]; fadeFromIndex?: never; } type DialogProps = { activeSnapPoint?: number | string | null; setActiveSnapPoint?: (snapPoint: number | string | null) => void; children?: React.ReactNode; open?: boolean; closeThreshold?: number; noBodyStyles?: boolean; onOpenChange?: (open: boolean) => void; shouldScaleBackground?: boolean; setBackgroundColorOnScale?: boolean; scrollLockTimeout?: number; fixed?: boolean; handleOnly?: boolean; dismissible?: boolean; onDrag?: (event: React.PointerEvent, percentageDragged: number) => void; onRelease?: (event: React.PointerEvent, open: boolean) => void; modal?: boolean; nested?: boolean; onClose?: () => void; direction?: 'top' | 'bottom' | 'left' | 'right'; defaultOpen?: boolean; disablePreventScroll?: boolean; repositionInputs?: boolean; snapToSequentialPoint?: boolean; container?: HTMLElement | null; onAnimationEnd?: (open: boolean) => void; preventScrollRestoration?: boolean; autoFocus?: boolean; } & (WithFadeFromProps | WithoutFadeFromProps); declare function Root({ open: openProp, onOpenChange, children, onDrag: onDragProp, onRelease: onReleaseProp, snapPoints, shouldScaleBackground, setBackgroundColorOnScale, closeThreshold, scrollLockTimeout, dismissible, handleOnly, fadeFromIndex, activeSnapPoint: activeSnapPointProp, setActiveSnapPoint: setActiveSnapPointProp, fixed, modal, onClose, nested, noBodyStyles, direction, defaultOpen, disablePreventScroll, snapToSequentialPoint, preventScrollRestoration, repositionInputs, onAnimationEnd, container, autoFocus, }: DialogProps): React.JSX.Element; declare const Overlay: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; type ContentProps = React.ComponentPropsWithoutRef; declare const Content: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; type HandleProps = React.ComponentPropsWithoutRef<'div'> & { preventCycle?: boolean; }; declare const Handle: React.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & { preventCycle?: boolean; } & React.RefAttributes>; declare function NestedRoot({ onDrag, onOpenChange, ...rest }: DialogProps): React.JSX.Element; type PortalProps = React.ComponentPropsWithoutRef; declare function Portal(props: PortalProps): React.JSX.Element; declare const Drawer: { Root: typeof Root; NestedRoot: typeof NestedRoot; Content: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; Overlay: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; Trigger: React.ForwardRefExoticComponent>; Portal: typeof Portal; Handle: React.ForwardRefExoticComponent, HTMLDivElement>, "ref"> & { preventCycle?: boolean; } & React.RefAttributes>; Close: React.ForwardRefExoticComponent>; Title: React.ForwardRefExoticComponent>; Description: React.ForwardRefExoticComponent>; }; export { Content, type ContentProps, type DialogProps, Drawer, Handle, type HandleProps, NestedRoot, Overlay, Portal, Root, type WithFadeFromProps, type WithoutFadeFromProps };