/** * @param {string} input * @returns {Node[]} */ export default function tokenize(input: string): Node[]; /** * Inline-format parser. Produces a tree the renderer can walk to * assemble JSX. Pure logic — no DOM or JSX deps, so this file is * unit-testable. * * Markers (`*bold*`, `/italic/`, `_under_`, `-strike-`, `|spoiler|`, * `code`) nest freely except ```, which is atomic — its body stays * literal so the renderer can copy it verbatim. */ export type Node = { kind: "text"; s: string; } | { kind: "atom"; name: string; s: string; } | { kind: "tag"; name: string; children: Node[]; }; //# sourceMappingURL=tokenize.d.ts.map