/**
 * `olam flywheel sanitize-persona-output` — K1 persona output sanitizer.
 *
 * Port of `shared/engineering/scripts/sanitize-persona-output.py`. Implements
 * the 4 sanitization rules from chief-of-staff-dispatch.md § Sanitization
 * (numbered to match the Python source):
 *
 *   0. Control-sequence strip (ADV-C2-02): reject ANSI escapes, bidi-override
 *      codepoints (U+202A-202E, U+2066-2069), and raw C0 control bytes (except
 *      \n and \t). Applied FIRST, before header check.
 *   1. Header-rejection: reject persona output containing plan-body section
 *      headers (`## Open questions`, `## K1 persona review`,
 *      `## Significant decisions`, `## Pass log`) — these are skill-owned
 *      sections; persona output must not inject into them.
 *   2. Pipe-escaping: replace `|` with `\|` to prevent table-column injection
 *      when persona output lands in OQ rows.
 *   3. Appendix size cap: truncate to ≤800 tokens (≈3200 chars) with
 *      `[...truncated by K1 size cap]` marker.
 *
 * CLI:
 *   echo "<persona output>" | olam flywheel sanitize-persona-output
 *   Exit 0 = PASS (sanitized output on stdout)
 *   Exit 1 = REJECT (reason on stderr, nothing on stdout)
 *
 * Plan reference: docs/plans/olam-flywheel-cli-namespace/phase-a-tasks.md § A6
 */
import type { Command } from 'commander';
export interface SanitizeResult {
    passed: boolean;
    sanitized: string;
    reason: string;
}
/**
 * Sanitize persona output before K1 injection into the plan body.
 */
export declare function sanitize(text: string): SanitizeResult;
export declare function registerFlywheelSanitizePersonaOutput(parent: Command): void;
//# sourceMappingURL=sanitize-persona-output.d.ts.map