/**
* @fileoverview Markdown boundaries for upstream text that `format()` interpolates
* into `content[]`. A single-line field (title, highlight title, poll-option text)
* is escaped just enough that it cannot end the server's own markup around it. A
* body is quoted line by line and otherwise left verbatim, so code stays intact.
* Usernames, URLs, IDs, and server tokens are interpolated as they are.
* @module mcp-server/tools/markdown-escape
*/
/**
* Escape a single-line upstream field so it cannot close or open the server's
* markup around it — a `**…**` wrapper, a code span, a link, an HTML tag, or a
* new line (each line break becomes a space) — and so it reads as typed in raw
* text. This is not a full Markdown escape: `_under_` can still render as
* emphasis, and a typed `©` as ©. `a < b`, `[pdf]`, and `snake_case` are
* left unchanged.
*/
export declare function escapeInline(text: string): string;
/** {@link escapeInline} for a field quoted in `"…"`, where a `"` would end the quote. */
export declare function escapeQuoted(text: string): string;
/**
* Escape an Algolia title highlight for the search footer, leaving its ``
* and `` markers as markup. `|` is escaped too, since the footer separates
* its segments with ` | ` and a title reading `x | terms: y` would otherwise
* imitate one. A literal `` typed into the title is indistinguishable from
* a marker and passes through the same way.
*/
export declare function escapeHighlight(text: string): string;
/**
* Quote an upstream body: every line gets `> ` after `indent`, and an empty line
* a bare `>`, so no line of the body can start a server-authored line. The only
* escape inside the body is the `[` of a link reference definition, which would
* otherwise reach past the quote; everything else, code included, stays
* verbatim. A quote absorbs the next non-blank line through lazy continuation,
* so the caller follows the body with a blank line whenever server text comes
* after it.
*/
export declare function quoteBody(text: string, indent?: string): string;
//# sourceMappingURL=markdown-escape.d.ts.map