/**
 * Shared utility functions for fit text functionality.
 * Uses callback-based approach for maximum code reuse between editor and frontend.
 */
type ApplyFontSize = (size: number) => void;
/**
 * Complete fit text optimization for a single text element.
 * Handles the full flow using callbacks for font size application.
 *
 * @param textElement   The text element (paragraph, heading, etc.)
 * @param applyFontSize Function that receives font size in pixels (0 to clear, >0 to apply)
 */
export declare function optimizeFitText(textElement: HTMLElement | null, applyFontSize: ApplyFontSize): number | undefined;
export {};
//# sourceMappingURL=fit-text-utils.d.ts.map