import type { ComponentPublicInstance } from 'vue'; export declare type Key = string | number; export interface ContextmenuConfig { key: Key; label?: string; icon?: Record | (() => any); color?: string; iconColor?: string; shortcut?: string; divided?: boolean; disabled?: boolean; children?: ContextmenuConfig[]; renderer?: () => any; } export interface ContextmenuOptions { clientX: number; clientY: number; configs: ContextmenuConfig[]; target?: any; appear?: boolean; } export interface ContextmenuInstance extends ComponentPublicInstance { openContextmenu: (options: ContextmenuOptions) => Promise; handleCancel: () => void; }