/** * Pre-constructed tools for extracting counts, token estimates, and character statistics from text. * * @module @nhtio/adk/batteries/tools/text_analysis * * @remarks * Pre-constructed bundled tools for the `text_analysis` category. Import individually, the whole * category, or import every tool via `@nhtio/adk/batteries`. */ import { Tool, SpooledJsonArtifact } from "../../../common"; /** * Analyze text and return statistics as a JSON document. * * @remarks * Reports character counts (with and without spaces), word/sentence/paragraph/line counts, * unique word count, average word length, a rough token estimate (4 chars/token), and a set * of character-class booleans (`is_all_alpha`, `is_all_ascii`, etc.). * * Output is JSON, so the artifact constructor is set to {@link @nhtio/adk!SpooledJsonArtifact} — consumer * code can read the result back as a parsed record without re-parsing. */ export declare const textAnalyzeTool: Tool>; /** * Operate on text treated as a list of lines. * * @remarks * Operations: `sort`, `sort_desc`, `reverse`, `deduplicate`, `filter_empty`, `trim_each`, * `number` (prefix each line with `1.`, `2.`, …), `count`. Sort and deduplicate respect the * optional `case_insensitive` flag. */ export declare const textLinesTool: Tool;