/** * Runtime Interface - 抽象 HTTP/fetch 能力,让适配器可测试 */ export interface RuntimeInterface { fetch(url: string, init?: RequestInit): Promise; readFile(path: string): Promise; readFileBuffer(path: string): Promise; getConfigDir(): string; } export interface RuntimeOptions { fetchImpl?: typeof fetch; }