/// <reference types="react" resolution-mode="require"/>
import { GridCell } from '@glideapps/glide-data-grid';
import { MenuProps } from 'antd';
import { DropdownEvent } from '../../kit/Dropdown';
export type ContextMenuCompleteHandlerProps<CompleteAction, CompleteData> = (action: CompleteAction, id: number, data?: Partial<CompleteData>) => void;
export interface ContextMenuProps<RowData, CompleteAction, CompleteData> extends MenuProps {
    cell?: GridCell;
    rowData: RowData;
    link?: string;
    onClose: (e?: DropdownEvent | Event) => void;
    onComplete?: ContextMenuCompleteHandlerProps<CompleteAction, CompleteData>;
    onVisibleChange?: (visible: boolean) => void;
    open: boolean;
    renderContextMenuComponent?: (props: ContextMenuComponentProps<RowData, CompleteAction, CompleteData>) => JSX.Element;
    x: number;
    y: number;
}
export type ContextMenuComponentProps<RowData, CompleteAction, CompleteData> = Omit<ContextMenuProps<RowData, CompleteAction, CompleteData>, 'renderContextMenuComponent' | 'x' | 'y'>;
export declare function ContextMenu<RowData, CompleteAction, CompleteData>({ cell, rowData, link, onClose, onComplete, open, renderContextMenuComponent, x, y, }: ContextMenuProps<RowData, CompleteAction, CompleteData>): JSX.Element;
//# sourceMappingURL=contextMenu.d.ts.map