import { AnnotationFreeText } from '@/components';
import { PageViewport } from 'pdfjs-dist';
export declare function getFreeTextFontSize(fontSize: number): string;
export declare function getFreeTextFontFamily(fontName: string): string;
export declare function replaceNewlinesWithBackslashN(contentEditableElement: HTMLDivElement): string;
/**
 * Creates a new appearance stream for a free text annotation
 * Mimics PDF.js's FreeTextAnnotation.createNewAppearanceStream
 * to ensure consistent font sizing between display and actual PDF content
 */
export declare const createNewAppearanceStream: (annotation: AnnotationFreeText) => {
    newFontSize: number;
    fscale: number;
    totalWidth: number;
    totalHeight: number;
    lineHeight: number;
    lineAscent: number;
} | null;
export declare function getFreeTextRect(freeTextElement: HTMLElement, editorLayer: HTMLElement, pageViewport: PageViewport): [number, number, number, number] | undefined;
