import { Directive } from 'vue';
import { MenuItem } from '../earthsdk/components/types';
/**
* 销毁菜单实例
* 用于清理资源(可选,通常不需要调用)
*/
export declare function destroyContextMenuInstance(): void;
/**
* 右键菜单指令
*
* @example
* ```vue
*
* 右键点击我
*
*
*
* ```
*
* @remarks
* - 只支持传递函数:`v-context-menu="(e) => items"`
* - 支持异步函数:`v-context-menu="async (e) => await fetchItems()"`
* - 如果需要在显示菜单前执行逻辑(如选中节点),请使用 `@contextmenu` 事件处理器
* - 指令内部使用 `setTimeout` 确保在 Vue 更新完成后再显示菜单
*/
export declare const vContextMenu: Directive MenuItem[] | Promise