/** * @fileoverview Ace Editor 工具函数 * * 提供语言模式映射和异步加载 Ace Editor 相关资源的功能 * 所有 ace-builds 相关的导入都改为异步,避免同步加载导致的错误 */ /** * 语言模式映射表 * 将常见的语言别名映射到 Ace Editor 支持的标准模式名称 */ export declare const modeMap: Map; /** * 异步获取 Ace Editor 支持的语言列表 * 使用单例模式确保只加载一次 * * @returns {Promise>} Ace Editor 支持的语言名称集合 */ export declare const getAceLangs: () => Promise>; /** * 预加载 Ace Editor 语言模式 * 可以在应用启动时调用,提前开始加载 */ export declare const preloadAceModes: () => void;