import type { MouseEventHandler, RefObject } from "react";
export interface PopoverPosition {
	left: number;
	top: number;
	width: number;
}
export interface UseCellContextMenuProps {
	tdRef: RefObject<HTMLTableCellElement>;
}
export interface UseCellContextMenuResult {
	isContextMenuOpen: boolean;
	handleOpenContextMenu: MouseEventHandler<HTMLTableCellElement>;
	handleCloseContextMenu: () => void;
	popoverPosition: PopoverPosition | null;
}
export declare const useCellContextMenu: ({ tdRef }: UseCellContextMenuProps) => UseCellContextMenuResult;
