import type { GuardVerdict } from "./types.js"; export type SanitizedExternalContent = { /** Content safe to show to an agent. */ displayText: string; /** Content safe to persist. Null means quarantine instead of indexing it. */ persistText: string | null; verdict: GuardVerdict; reason: string; findings: string[]; secretsRedacted: number; }; /** * Apply the complete trust boundary for external content before it is returned * to an agent or stored in long-lived memory. * * Warning/block payloads are deliberately not persisted. Spotlighting is safe * for display, but a memory engine can split the wrapper away from the quoted * payload and accidentally reactivate the embedded instructions later. */ export declare function sanitizeExternalContent(text: string): SanitizedExternalContent;