/** * 代码围栏感知文本分块 — 不在 ``` 围栏内断开 */ export interface ChunkOptions { /** 每块最大字符数 */ maxLength?: number; } /** * 将长文本按行分块,保证不在代码围栏内断开。 * 如果围栏内容超过 2x maxLength,强制在围栏边界插入闭合/开启标记。 * 文本末尾未闭合的围栏会自动补闭合标记。 */ export declare function chunkText(text: string, opts?: ChunkOptions): string[]; //# sourceMappingURL=text-chunker.d.ts.map