import { DropdownItem } from '../Dropdown';
export type ContextMenuState = {
    id: string;
    items: DropdownItem[];
    position: 'fixed';
    x: number;
    y: number;
    align?: 'left' | 'right';
    openUp?: boolean;
    fullWidth?: boolean;
    anchor?: HTMLElement | null;
    closeOnSelect?: boolean;
    onSelect?: (item: DropdownItem) => void;
    onClose?: () => void;
};
export declare const contextMenuService: {
    menu: import('vue').Ref<{
        id: string;
        items: {
            label: string;
            value: string | number;
            type: "item";
            active?: boolean | undefined;
            selected?: boolean | undefined;
            muted?: boolean | undefined;
            key?: string | number | undefined;
            icon?: import('..').IconType | undefined;
            color?: import('../..').Color | undefined;
            status?: import('../..').Status | undefined;
            disabled?: boolean | undefined;
            divider?: boolean | undefined;
            action?: ((item: DropdownItem) => void) | undefined;
        }[];
        position: "fixed";
        x: number;
        y: number;
        align?: "left" | "right" | undefined;
        openUp?: boolean | undefined;
        fullWidth?: boolean | undefined;
        anchor?: (HTMLElement | null) | undefined;
        closeOnSelect?: boolean | undefined;
        onSelect?: ((item: DropdownItem) => void) | undefined;
        onClose?: (() => void) | undefined;
    } | null, ContextMenuState | {
        id: string;
        items: {
            label: string;
            value: string | number;
            type: "item";
            active?: boolean | undefined;
            selected?: boolean | undefined;
            muted?: boolean | undefined;
            key?: string | number | undefined;
            icon?: import('..').IconType | undefined;
            color?: import('../..').Color | undefined;
            status?: import('../..').Status | undefined;
            disabled?: boolean | undefined;
            divider?: boolean | undefined;
            action?: ((item: DropdownItem) => void) | undefined;
        }[];
        position: "fixed";
        x: number;
        y: number;
        align?: "left" | "right" | undefined;
        openUp?: boolean | undefined;
        fullWidth?: boolean | undefined;
        anchor?: (HTMLElement | null) | undefined;
        closeOnSelect?: boolean | undefined;
        onSelect?: ((item: DropdownItem) => void) | undefined;
        onClose?: (() => void) | undefined;
    } | null>;
    open(nextMenu: ContextMenuState): void;
    close(id?: string): void;
    clear(): void;
    select(item: DropdownItem): void;
};
export declare const createContextMenuInstanceId: (prefix?: string) => string;
