/**
* @file The HTML5 named character references, as CommonMark requires
* them (its "entity and numeric character references" section defers to
* the WHATWG HTML standard's table, all 2125 of them — a
* pragmatic subset is a dialect, not CommonMark).
*
* GENERATED by `scripts/generate-md-entities.js`; do not edit by hand.
*
* The table is packed as one string and split on first use rather than
* written as 2125 object properties: the packed form is a
* quarter of the source bytes and one allocation, and a document with no
* entity in it never pays for the Map at all.
*/
/**
* The named character reference table, built on first use.
* @returns {Map}
*/
export declare function namedEntities(): Map;
/**
* Decode one character reference at `pos` (`&...;`). Returns null when it
* is not a valid reference — an `&` that starts nothing is ordinary text,
* which is why this reports rather than throws.
* @param {string} src
* @param {number} pos
* @returns {{ value: string, end: number } | null}
*/
export declare function scanEntity(src: string, pos: number): {
value: string;
end: number;
} | null;
/**
* Resolve backslash escapes and character references in a run of text.
*
* CommonMark processes both in the three places that are NOT inline
* content — link destinations, link titles and fence info strings — so
* they share this one pass rather than each re-deriving it.
* @param {string} text
* @returns {string}
*/
export declare function decodeReferences(text: string): string;