/** * text.ts — Smart text chunking for outgoing WeChat replies. * * Extracted verbatim from worker.ts (see `// ── Smart Text Chunking ──`) * so the pure string logic can be unit tested without spinning up the * WeChat worker process. No runtime imports — pure functions over strings. */ export declare function splitMarkdownBlocks(content: string): string[]; export declare function chunkText(content: string, maxLen: number): string[]; /** Room reserved for the `(1/3)` line, in characters. */ export declare const CHUNK_LABEL_RESERVE = 12; /** * Prefix each piece with its position. On its own line: a chunk can start * with a fence, a heading or a list marker, all of which stop being * Markdown if something precedes them on the line. */ export declare function labelChunks(chunks: readonly string[]): string[]; /** * Cut a reply into the messages the worker actually sends: fences * repaired, pieces numbered, and every piece within `maxLen` including * its label. */ export declare function chunkReply(content: string, maxLen: number): string[]; //# sourceMappingURL=text.d.ts.map