import type { Mention } from './mentions.js'; import { type ParsedInbound } from './body.js'; /** * Read a card as the text it displays and the resources it embeds. * * A card event carries the whole card: `user_dsl` for a card authored in the * current schema, the outer object for an older one. Every `content` / `text` * string the walk reaches is one line of the body, in document order, and * every image or file component is a resource at its position. The walk * descends only through the keys a card displays its children under, so * layout, controls beyond the strings they show, callback payloads (`value`, * `behaviors`), and link targets are never reached, and `i18n_elements` is * read once from the card root or body, the only places the schema puts it. * A node the walk reaches contributes each `content` / `text` string it * carries; no schema node carries both. A template card carries no readable * text at all. */ export declare function parseCardContent(outer: Record, mentions: Mention[] | undefined): ParsedInbound; //# sourceMappingURL=card.d.ts.map