import { MutableRefObject } from "react";
import { Placement, ReferenceType } from "@floating-ui/react";
import { ITheme } from "@gooddata/sdk-model";
import { Dimensions, PlacementShift, TooltipArrowPlacement } from "./types.js";
export declare const getOppositeBasicPlacement: (arrowPlacement: TooltipArrowPlacement) => Placement;
export declare const getFlipFallbackOrder: (arrowPlacement: TooltipArrowPlacement) => Array<Placement>;
export declare const getDimensionsFromRect: (rect: DOMRect | {
    width: number;
    height: number;
} | null) => {
    width: number;
    height: number;
};
export declare const getDimensionsFromRef: (ref: MutableRefObject<ReferenceType | null>) => {
    width: number;
    height: number;
};
export declare const computeTooltipShift: (arrowPlacement: TooltipArrowPlacement, floatingDimensions: Dimensions, isEnabled: boolean, theme?: ITheme) => PlacementShift;
export declare const computeArrowOffset: (arrowPlacement: TooltipArrowPlacement, floatingDimensions: Dimensions, isEnabled: boolean, theme?: ITheme) => number;
//# sourceMappingURL=utils.d.ts.map