import { type FormatResult, type Insertable } from "@yaebal/core"; /** * parse telegram's HTML subset into `{ text, entities }`. covers the full * official vocabulary: `b/strong`, `i/em`, `u/ins`, `s/strike/del`, `code` * (with `class="language-x"`), `pre` (a `
` pair
 * collapses into one `pre` entity carrying the language), `blockquote`
 * (+ `expandable`), `a href`, `tg-spoiler` / `span.tg-spoiler`, `tg-emoji
 * emoji-id`. beyond it: `
` becomes a newline, tags left unclosed at the end * of input are auto-closed, unmatched closing tags are dropped, and anything * unrecognized stays literal text. */ export declare function htmlToEntities(raw: string): FormatResult; /** * parse the `md` template dialect into `{ text, entities }`: * `**bold**`, `*italic*` / `_italic_`, `__underline__`, `~~strikethrough~~`, * `||spoiler||`, `` `code` ``, ```` ```lang\n…``` ```` fences, * `[text](url)` links, and `> ` line-prefixed blockquotes. a backslash escapes * the next character. single `*`/`_` don't trigger mid-word (`snake_case` is * safe) and their content can't start or end with whitespace. */ export declare function mdToEntities(input: string): FormatResult; /** parse an HTML-subset template into entities; `${}` interpolations are auto-escaped. */ export declare function html(strings: TemplateStringsArray, ...subs: Insertable[]): FormatResult; /** parse a markdown template into entities; `${}` interpolations are auto-escaped. */ export declare function md(strings: TemplateStringsArray, ...subs: Insertable[]): FormatResult; //# sourceMappingURL=index.d.ts.map