/**
* Minimal XML escaping for folding untrusted text into an XML-shaped block.
*
* Memory entries and other injected content are frequently user-derived, so interpolating them raw
* into `…` both breaks the block structurally (a stray `` or `"`) and opens a
* stored-prompt-injection surface. These helpers are deliberately tiny — enough to keep a ``
* block well-formed, not a general-purpose serializer.
*/
/**
* Escapes text content for placement between XML tags: `&` (first, so later replacements are not
* double-escaped), then `<` and `>`.
*
* @param value - The raw text to escape
* @returns The escaped text, safe to place in element content
* @internal Used by the memory default formatter
*/
export declare function escapeXmlText(value: string): string;
/**
* Escapes a value for placement inside a double-quoted XML attribute: the {@link escapeXmlText} rules
* plus `"` and `'`.
*
* @param value - The raw attribute value to escape
* @returns The escaped value, safe to place inside a quoted attribute
* @internal Default-format helper; not part of the public surface.
*/
export declare function escapeXmlAttr(value: string): string;
//# sourceMappingURL=xml.d.ts.map