import type { GetHtmlOptions } from '@polotno/core/text-html'; import { type TextSizing, type TextSizingElement } from '@polotno/core/text-sizing'; import type { StoreType } from '../../model/store.js'; export interface RenderTagSourceElement { text: string; placeholder: string; fontSize: number; fontFamily: string; fontWeight: string; fontStyle: string; fill: string; width: number; height: number; a: { width: number; height: number; }; filled: { text?: string; placeholder?: string; fill?: string; }; } export declare function useRenderTagSource(element: RenderTagSourceElement, store: StoreType): { fontLoaded: boolean; fontFamily: any; color: string | undefined; isPlaceholder: boolean; normalizedSourceText: string; getHtmlOptions: { fontFamily: any; color: string | undefined; forEditor: true; text: string; textIsNormalized: true; }; }; export declare function liveFitScale(element: TextSizingElement, sizing: TextSizing, getHtmlOptions: GetHtmlOptions, text: string, fallback: number): number;