/**
 * Text processing utilities.
 */
/**
 * Escape HTML special characters to prevent injection.
 */
export declare function escapeHtml(text: string): string;
/**
 * Parse an offset value which can be either:
 * - A number (e.g., 10)
 * - A suffixed number with "th" (text height) or "tw" (text width)
 *
 * @param value - The offset value (number or string)
 * @param textHeight - The height of reference text bounds
 * @param textWidth - The width of reference text bounds
 * @returns The computed offset in pixels
 */
export declare function parseOffset(value: number | string, textHeight: number, textWidth: number): number;
/**
 * Replace placeholders in SVG content.
 * Placeholders are in the format {{featureName}}.
 *
 * @param svgContent - The SVG content with placeholders
 * @param variables - Map of variable names to values
 * @returns SVG content with placeholders replaced
 */
export declare function resolvePlaceholders(svgContent: string, variables: Map<string, string>): string;
/**
 * Generate a unique ID by combining prefix and suffix.
 */
export declare function generateId(prefix: string, suffix: string | number): string;
/**
 * Truncate a string to a maximum length, adding ellipsis if needed.
 */
export declare function truncate(text: string, maxLength: number): string;
