import { SelectionRange } from "../client/editContext";
export type InlineAiPosition = {
    x: number;
    y: number;
    visible: boolean;
};
/**
 * Hook to calculate the position for the inline AI trigger/dialog
 * based on the current text selection.
 */
export declare function useInlineAiPosition(selectedRange: SelectionRange | undefined, containerRef?: React.RefObject<HTMLElement>): InlineAiPosition;
/**
 * Calculate optimal dialog position near the trigger
 */
export declare function calculateDialogPosition(triggerPosition: {
    x: number;
    y: number;
}, dialogWidth?: number, dialogHeight?: number): {
    x: number;
    y: number;
};
export default useInlineAiPosition;
