import * as React from "react";
import type { ContextInfo } from "./type";
import type { ContextMenuItem } from "./type";
export declare const findItemByKey: (array: any[], key: string, value: any) => any;
type Props<RecordType> = {
    rowData: RecordType | null;
    contextMenuItems: ContextMenuItem[];
    contextMenuClick?: (args: ContextInfo<RecordType>) => void;
    open: boolean;
    menuRef?: any;
    setOpen: (open: boolean) => void;
    pos: {
        x: number;
        y: number;
        viewportWidth: number;
        viewportHeight: number;
    };
};
declare const ContextMenu: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
export default ContextMenu;
