/*! Strand UI | MIT License | dillingerstaffing.com */ import type { ComponentChildren, JSX, RefObject } from "preact"; export interface DialogProps extends Omit, "title" | "open"> { open: boolean; onClose: () => void; /** Rendered in the header and used as the accessible name. */ title?: string; closeOnOutsideClick?: boolean; closeOnEscape?: boolean; /** `center` for a confirmation, `start` under the reader's gaze for a search overlay, `end` anchored to the bottom as a sheet (DL 11.6); prefer `Sheet` for the last. */ align?: "center" | "start" | "end"; /** Inner padding, the same ladder `Card` carries; `none` also clips to the panel radius. */ padding?: "none" | "sm" | "md" | "lg" | "xl"; /** Render the close control; overlays dismissed by Escape or the backdrop pass `false`. */ dismissible?: boolean; /** The element to focus on open; defaults to the first focusable child, else the panel. */ initialFocus?: RefObject; children?: ComponentChildren; } /** * Modal overlay with a focus trap, focus restoration, scroll lock and Escape and backdrop dismissal. * * @example * setOpen(false)} title="Confirm">

Are you sure?

*/ export declare const Dialog: import("preact").FunctionalComponent & { ref?: import("preact").Ref | undefined; }>; //# sourceMappingURL=Dialog.d.ts.map