import { ExcludedProps } from "@vitality-ds/system"; import React from "react"; declare type PointerDownOutsideEvent = CustomEvent<{ originalEvent: PointerEvent; }>; declare type FocusOutsideEvent = CustomEvent<{ originalEvent: FocusEvent; }>; export declare type ModalProps = ExcludedProps & { /** * The controlled open state of the Modal */ open: boolean; /** * Event handler called when the escape key is down */ onEscapeKeyDown?: (event: KeyboardEvent) => void; /** * Event handler called when a pointer event occurs outside the bounds of the content */ onPointerDownOutside?: (event: PointerDownOutsideEvent) => void; /** * Event handler called when an interaction (pointer or focus event) happens outside the bounds of the content */ onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void; /** * The content shown within the Modal */ onOpenAutoFocus?: (event: Event) => void; /** * The content shown within the Modal */ onCloseAutoFocus?: (event: Event) => void; /** * The content shown within the Modal */ children: React.ReactNode; /** * Indicates whether or not the Modal is layered on top of another one. Shifts the zIndicies of the blanket and modal content */ isLayeredModal?: boolean; }; export {};