import type { ScoreJson } from './types.js'; /** * HTML 转义:全字符集 & < > " ',& 必须先转(防 < 二次转义 &lt;)。 * 只接 string——数字(total/score)直接插值不传此函数。 * 历史依据:项目踩过 gdscript-template-injection(模板插值未转义)+ escapeTscnValue 漏 [(escape 漏字符)。 */ export declare function escapeHtml(s: string): string; /** 渲染 score.json → 自包含 HTML(静态 + 内联 CSS,无外部依赖)。所有字符串插值过 escapeHtml;status 白名单映射 class。 */ export declare function renderScoreHtml(score: ScoreJson): string;