/** * Doc-domain step extensions: format-preserving text mutation for DOCX/PPTX/ODF, PDF visual * redaction, asset extraction from OOXML/ODF archives and PDFs, and format conversion via the * convert engine. * * @remarks * Internal sibling of the `@nhtio/adk/batteries/media` entry. Ported from the source server's * doc adapters; the format-dispatch contract follows the server's green e2e suite: DOCX and * PPTX redact/sanitize/normalize/update_text mutate text in place inside the container * (preserving the source format); ODT/ODS/ODP redact/update_text mutate `content.xml` the * same way; text-like inputs mutate as text. PDF redact is VISUAL (pdf-lib draw-over + * metadata strip — content streams keep the text); the result carries that warning verbatim * because it is a trust boundary, not a footnote. */ import type { StepImpl } from "../runtime"; /** * The honest caveat every PDF redaction result must carry. Visual redaction draws over * matched pages and strips metadata; the content streams still contain the original text. */ export declare const PDF_REDACTION_WARNING = "PDF redaction applies visual annotations. Content streams are not modified. For full content-level redaction, convert to text first."; /** * `redact` — format dispatch: text media → text path; DOCX/PPTX/ODF → in-place container * edit; PDF → visual redaction (draw-over + metadata strip — see {@link PDF_REDACTION_WARNING}). */ export declare const docRedactStep: StepImpl; /** `sanitize` — strip blocked control characters from text nodes / text media. */ export declare const docSanitizeStep: StepImpl; /** `normalize` — CRLF→LF + trailing-whitespace removal in text nodes / text media. */ export declare const docNormalizeStep: StepImpl; /** `update_text` — anchor replacement; DOCX/PPTX/ODF in-place, TARGET_NOT_FOUND when absent. */ export declare const docUpdateTextStep: StepImpl; /** * `extract.assets` — enumerate embedded assets. OOXML/ODF archives are walked natively * (cross-env); PDF inputs use the pdfImages engine. */ export declare const extractAssetsStep: StepImpl; /** `convert` — dispatch through the engine registry (direct edge or computed path). */ export declare const convertStep: StepImpl; /** The doc step registry fragment (overrides the Phase 0 text-only redact/update_text). */ export declare const DOC_STEPS: ReadonlyArray<[ string, StepImpl ]>;