import { IEngineConfig, IFontState, IncrementalEngine, LoadedChunk, SubsetProvider, createHttpProvider } from "./engine.js"; //#region src/css-mode.d.ts /** 通用选项 */ interface IWebFontOptions { /** 字体文件名(如 '令东齐伋复刻体.ttf'),支持模糊匹配 */ fontName: string; /** 服务基地址,默认当前 origin */ baseUrl?: string; /** CSS font-family 名,默认去掉扩展名的字体名 */ family?: string; /** 输出格式,默认 woff2 */ outType?: 'woff2' | 'ttf'; } interface ILoadFontOptions extends IWebFontOptions { /** DOM 选择器 */ selector: string; /** 轮询间隔 ms,默认 1000 */ interval?: number; } interface IObserveFontOptions extends IWebFontOptions { /** DOM 选择器 */ selector: string; /** 防抖 ms,默认 50 */ debounceMs?: number; } interface ILoadTextOptions extends IWebFontOptions { /** 初始文本 */ text: string; } /** loadText 返回的手动加载器 */ interface ITextLoader { /** 追加文本(自动去重) */ update(text: string): void; dispose(): void; } /** observeFont 返回的观察任务 */ interface IObserveTask { dispose(): void; } declare class WebFontCSSMode { private engine; /** 每个加载器注入的