import { type StyleProp, type ViewStyle } from "../../style/index.js"; import { type AlertDialogSkin, type InputComponent } from "./alert-dialog.styles.js"; export interface AlertDialogProps { title?: string; description?: string; trigger?: string; confirmLabel?: string; cancelLabel?: string; open?: boolean; onOpenChange?: (open: boolean) => void; narrow?: boolean; small?: boolean; large?: boolean; withInput?: boolean; /** The token the confirmation field must match to enable confirm (default * "DELETE"). Only used when `withInput` is set; drives the label, placeholder, * and the gate. */ confirmText?: string; destructive?: boolean; onConfirm?: () => void; onCancel?: () => void; /** * Presents the confirm OVER the page instead of inline where it is mounted. * * The default is a contained overlay, which the docs catalogue needs to show * one inside an example stage. An application asking to confirm a destructive * action needs the opposite: inline, the scrim appears wherever the component * happens to sit, the page behind stays scrollable and clickable, and the * dialog still claims `aria-modal`. Teleports into the nearest * `OverlayProvider`; with none in the tree it renders in place. */ overlay?: boolean; /** E2E hook forwarded to the root element. */ testID?: string; /** Outer layout composition only (width/flex within a parent), never a restyle hook. */ style?: StyleProp; } export declare function createAlertDialog(skin: AlertDialogSkin, Input?: InputComponent): (props: AlertDialogProps) => import("react").JSX.Element; //# sourceMappingURL=alert-dialog.shared.d.ts.map