import * as React from "react";
type DivProps = React.HTMLAttributes<HTMLDivElement>;
/** A name of an event that can fire on an HTMLDivElement, such as "onClick" or "onMouseUp" */
type EventName = Exclude<{
    [K in keyof DivProps]: K extends `on${string}` ? K : never;
}[keyof DivProps], undefined>;
export type EventSandboxProps = {
    children: React.ReactNode;
    disabled?: boolean;
    /** Explicitly specify which events are sandboxed. By default all events are sandboxed */
    sandboxedEvents?: EventName[];
    /** Explicitly specify which events are *not* sandboxed. By default, all events are sandboxed, minus the ones mentioned here */
    unsandboxedEvents?: EventName[];
    preventDefault?: boolean;
    className?: string;
    /** Do not sandbox the 'onMouse*' events. (NOTE: This does not include onClick.)*/
    enableMouseEvents?: boolean;
    /** Do not sandbox the 'onKey*' events */
    enableKeyEvents?: boolean;
};
/** Prevent DOM events from bubbling through the React component tree.
 *
 * This is useful for modals and popovers as they are often targeted to interactive elements. */
declare function EventSandbox({ children, disabled, sandboxedEvents, unsandboxedEvents, enableMouseEvents, enableKeyEvents, preventDefault, className, }: EventSandboxProps): import("react/jsx-runtime").JSX.Element;
export default EventSandbox;
