import React from 'react';
import { IG6GraphEvent, Item } from '@antv/g6';
import Base, { IPluginBaseConfig } from '../base';
export interface MenuConfig extends IPluginBaseConfig {
    handleMenuClick?: (target: HTMLElement, item: Item) => void;
    customContent?: (evt?: IG6GraphEvent) => React.ReactNode;
    offsetX?: number;
    offsetY?: number;
    shouldBegin?: (evt?: IG6GraphEvent) => boolean;
    itemTypes?: string[];
    trigger?: 'click' | 'contextmenu';
}
export default class Menu extends Base {
    constructor(config?: MenuConfig);
    getDefaultCfgs(): MenuConfig;
    getEvents(): {
        click: string;
        touchend: string;
        contextmenu?: undefined;
    } | {
        contextmenu: string;
        click?: undefined;
        touchend?: undefined;
    };
    init(): void;
    protected onMenuShow(e: IG6GraphEvent): void;
    private removeMenuEventListener;
    private onMenuHide;
    destroy(): void;
}
