import * as React from 'react'; import { DismissableLayer } from '@radix-ui/react-dismissable-layer'; import { FocusScope } from '@radix-ui/react-focus-scope'; import { Portal as Portal$1 } from '@radix-ui/react-portal'; import { Primitive } from '@radix-ui/react-primitive'; type Scope = { [scopeName: string]: React.Context[]; } | undefined; type ScopeHook = (scope: Scope) => { [__scopeProp: string]: Scope; }; interface CreateScope { scopeName: string; (): ScopeHook; } declare const createDialogScope: CreateScope; interface DialogProps { children?: React.ReactNode; open?: boolean; defaultOpen?: boolean; onOpenChange?(open: boolean): void; modal?: boolean; } declare const Dialog: React.FC; type PrimitiveButtonProps = React.ComponentPropsWithoutRef; interface DialogTriggerProps extends PrimitiveButtonProps { } declare const DialogTrigger: React.ForwardRefExoticComponent>; type PortalProps = React.ComponentPropsWithoutRef; interface DialogPortalProps { children?: React.ReactNode; /** * Specify a container element to portal the content into. */ container?: PortalProps['container']; /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const DialogPortal: React.FC; interface DialogOverlayProps extends DialogOverlayImplProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const DialogOverlay: React.ForwardRefExoticComponent>; type PrimitiveDivProps = React.ComponentPropsWithoutRef; interface DialogOverlayImplProps extends PrimitiveDivProps { } interface DialogContentProps extends DialogContentTypeProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const DialogContent: React.ForwardRefExoticComponent>; interface DialogContentTypeProps extends Omit { } type DismissableLayerProps = React.ComponentPropsWithoutRef; type FocusScopeProps = React.ComponentPropsWithoutRef; interface DialogContentImplProps extends Omit { /** * When `true`, focus cannot escape the `Content` via keyboard, * pointer, or a programmatic focus. * @defaultValue false */ trapFocus?: FocusScopeProps['trapped']; /** * Event handler called when auto-focusing on open. * Can be prevented. */ onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus']; /** * Event handler called when auto-focusing on close. * Can be prevented. */ onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus']; } type PrimitiveHeading2Props = React.ComponentPropsWithoutRef; interface DialogTitleProps extends PrimitiveHeading2Props { } declare const DialogTitle: React.ForwardRefExoticComponent>; type PrimitiveParagraphProps = React.ComponentPropsWithoutRef; interface DialogDescriptionProps extends PrimitiveParagraphProps { } declare const DialogDescription: React.ForwardRefExoticComponent>; interface DialogCloseProps extends PrimitiveButtonProps { } declare const DialogClose: React.ForwardRefExoticComponent>; declare const WarningProvider: React.FC<{ contentName: string; titleName: string; docsSlug: string; } & { children: React.ReactNode; }>; declare const Root: React.FC; declare const Trigger: React.ForwardRefExoticComponent>; declare const Portal: React.FC; declare const Overlay: React.ForwardRefExoticComponent>; declare const Content: React.ForwardRefExoticComponent>; declare const Title: React.ForwardRefExoticComponent>; declare const Description: React.ForwardRefExoticComponent>; declare const Close: React.ForwardRefExoticComponent>; export { Close, Content, Description, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Overlay, Portal, Root, Title, Trigger, WarningProvider, createDialogScope };