/**
 * Make an HTML page self-contained enough to view on share.getrush.ai.
 *
 * Chrome "Save as" (and some renderers) leave `file:///…html#section` TOC
 * links and sibling image paths. Those work on disk and 404 on the share
 * Worker, which only stores the one PUT body. Rewrite same-document file
 * anchors to `#section`, and inline local image files as data URIs.
 *
 * https citations, data: URIs already in the page, and missing files are
 * left alone. This is not a bundler — it only fixes what would otherwise
 * render as a broken page after a single-file publish.
 */
/** Skip inlining a sibling that would bloat the page past a reasonable PUT. */
export declare const MAX_INLINE_BYTES: number;
/**
 * `href="file:///tmp/page.html#purpose"` → `href="#purpose"`.
 * Bare `file:///tmp/page.html` (no hash) becomes `href="#"`.
 */
export declare function rewriteFileAnchors(html: string): string;
/** Replace local image src/href with a data URI when the file exists next to the page. */
export declare function inlineLocalAssets(html: string, htmlPath: string): string;
export declare function prepareShareHtml(html: string, htmlPath: string): string;
