import { type KeyboardEvent, type ReactNode, type ReactElement } from 'react'; import type { DialogClassNames, AlertOptions, ConfirmOptions, PromptOptions } from './types'; interface InPlace { open: boolean; onOpenChange: (open: boolean) => void; } export interface DialogProps extends InPlace { children: ReactNode; modal?: boolean | undefined; closeOnEscape?: boolean | undefined; closeOnClickOutside?: boolean | undefined; onKeyDown?: ((event: KeyboardEvent, close: () => void) => void) | undefined; unstyled?: boolean | undefined; classNames?: DialogClassNames | undefined; 'aria-label'?: string | undefined; 'aria-labelledby'?: string | undefined; 'aria-describedby'?: string | undefined; } type Declarative = InPlace & Omit; export type ConfirmDialogProps = Declarative | Declarative | (Declarative & { onSubmit: (value: string) => void | Promise; }); /** A dialog rendered where it is placed, so its children read the latest state of the component (#63 #66). */ export declare function Dialog(props: DialogProps): ReactElement | null; /** confirm, alert or prompt rendered in place and driven by `open`. */ export declare function ConfirmDialog(props: ConfirmDialogProps): ReactElement | null; export {};