import { DataEditorProps } from '@glideapps/glide-data-grid';
import { ReactNode } from 'react';
import { Loadable } from '../../kit/utils/loadable';
import { ColumnDef } from './columns';
export interface TooltipProps {
    x: number;
    y: number;
    open: boolean;
    text: string;
}
interface UseTooltipParams<T> {
    data: Loadable<T>[];
    columns: ColumnDef<T>[];
}
interface UseTooltipReturn {
    closeTooltip: () => void;
    onItemHovered: DataEditorProps['onItemHovered'];
    tooltip: ReactNode;
}
export declare function useTableTooltip<T>({ columns, data }: UseTooltipParams<T>): UseTooltipReturn;
export {};
//# sourceMappingURL=tooltip.d.ts.map