/** * Pure text-shaped step implementations: chunking, plain-text extraction, text diff/patch, * and the text-mode redact/update_text paths. * * @remarks * Internal sibling of the `@nhtio/adk/batteries/media` entry. The split functions are ported * verbatim from the source server's `chunk_text` adapter (its green unit suite ports with * them). All implementations here operate on in-memory bytes and run in any environment. */ import type { StepImpl } from "../runtime"; /** One text chunk with its position in the source. */ export interface Chunk { index: number; text: string; char_start: number; char_end: number; } /** Split text on double-newline paragraph boundaries, with optional character overlap. */ export declare const splitParagraph: (text: string, overlap: number) => Chunk[]; /** Split text on sentence-ending punctuation, with optional character overlap. */ export declare const splitSentence: (text: string, overlap: number) => Chunk[]; /** Split text into fixed-size character windows with optional overlap. */ export declare const splitFixed: (text: string, chunkSize: number, overlap: number) => Chunk[]; export { decodeText } from "../../../lib/text/decode_text"; /** `chunk` — split text content into retrieval chunks (data result). */ export declare const chunkStep: StepImpl; /** * `extract.text` — Phase 0 covers the native-text path (txt/md/csv/json/html). Document * formats (pdf/docx/…) and OCR routes are added by later phases; until then they fail with a * clear reason. */ export declare const extractTextStep: StepImpl; /** `extract.metadata` — Phase 0: size/MIME/filename basics (format-aware fields come later). */ export declare const extractMetadataStep: StepImpl; /** `redact` — Phase 0: the text-media path. Document-format in-place redaction lands later. */ export declare const redactStep: StepImpl; /** `update_text` — Phase 0: the text-media path. */ export declare const updateTextStep: StepImpl; /** `diff` — compare against another media (text-comparable formats in Phase 0). */ export declare const diffStep: StepImpl; /** * `apply_patch` — apply a unified diff, or a structured `*** Begin Patch` envelope * (multi-file Add/Delete/Update/Move — the GitHub Copilot apply_patch dialect). */ export declare const applyPatchStep: StepImpl;