/// <reference types="node" />
/// <reference types="react" />
import { EventEmitter } from 'events';
export declare class MometaDomApi extends EventEmitter {
    dom: HTMLElement;
    constructor(dom: HTMLElement);
    selectedKey: string;
    protected _preventDefault: (evt: any) => void;
    preventEvent: boolean;
    preventDefaultPop(event: string, options?: boolean | AddEventListenerOptions): () => void;
    getMometaList(): any[];
    getMometaData(): MometaData;
    getKey(): string;
    findParents(): any[];
}
export declare type MometaHTMLElement<T extends HTMLElement = HTMLElement> = T & {
    __mometa: MometaDomApi;
};
/**
 * 为了不修改原有 dom 事件，使用自定义的发布订阅模拟实现 dom 事件
 * @param dom
 * @param events
 */
export declare function useProxyEvents(dom: MometaHTMLElement, events: Pick<JSX.IntrinsicElements['div'], 'onClick'>): void;
