/**
* HTML → Markdown conversion + JSON key-path chunking for `fetch_and_index`.
*
* - `htmlToMarkdown(html)` strips scripts/styles/nav/etc. and converts the rest
* to GitHub-Flavored Markdown (tables, strikethrough, fenced code) via
* `turndown` + `turndown-plugin-gfm`. Turndown 7.x bundles `@mixmark-io/domino`
* as a DOM implementation, so it works in Bun without a global DOM.
*
* - `jsonToKeyPathChunks(json, label?)` walks a parsed JSON value and emits one
* markdown chunk per leaf path (e.g. `user.address.city → "Lyon"`). Arrays of
* primitives become a bulleted list under their path; arrays of objects fan
* out one entry per element. This gives each value a searchable key-path
* anchor instead of dumping pretty-printed JSON into one undifferentiated blob.
*/
/**
* Convert an HTML string to GitHub-Flavored Markdown. Scripts, styles, nav,
* header, footer, noscript, and iframes are stripped before conversion.
* Returns the empty string for falsy / whitespace-only input so the caller can
* treat it as "nothing to index".
*/
export declare function htmlToMarkdown(html: string): string;
export interface JsonChunk {
/** The leaf path, e.g. `items[0].name`. */
path: string;
/** Rendered as markdown: `**items[0].name** = \`Lyon\``. */
content: string;
}
/**
* Walk a parsed JSON value and emit one chunk per leaf. Object properties
* descend by key; arrays of objects fan out one entry per element (indexed);
* arrays of primitives collapse to a single bulleted-list chunk under their
* path. `null`/`undefined` leaves are skipped (no value to search).
*
* Each chunk's `content` is a small markdown snippet with the path bolded as a
* key anchor so both vector and keyword search can match on the path name.
*/
export declare function jsonToKeyPathChunks(value: unknown, label?: string): JsonChunk[];
//# sourceMappingURL=html-to-md.d.ts.map