import { Position } from '../../Portal';
/**
 * Custom hook to calculate and manage the position of a legend element relative to a trigger button
 *
 * @param isOpen - Boolean flag indicating if the legend is open
 * @param trigger - Reference to the HTML button element that triggers the legend
 * @returns Position object with top and right coordinates, or undefined if legend is closed
 */
export declare const useLegendPosition: (isOpen: boolean, trigger: HTMLButtonElement | null) => Position | undefined;
//# sourceMappingURL=use-legend-position.hook.d.ts.map