type CustomFocusEvent = CustomEvent<{
    originalEvent: FocusEvent;
}>;
type CustomPointerEvent = CustomEvent<{
    originalEvent: PointerEvent;
}>;
declare const CUSTOM_EVENTS: {
    FOCUS_OUTSIDE: string;
    POINTER_DOWN_OUTSIDE: string;
    POINTER_UP_OUTSIDE: string;
};
declare function dispatchCustomEvent<E extends CustomEvent, OriginalEvent extends Event>(name: string, handler: ((event: E) => void) | undefined, detail: {
    originalEvent: OriginalEvent;
} & (E extends CustomEvent<infer D> ? D : never)): void;
export { CUSTOM_EVENTS, dispatchCustomEvent };
export type { CustomFocusEvent, CustomPointerEvent };
