#!/usr/bin/env node /** * Format a host for embedding in a printed/opened URL: `http://:/`. * * An IPv6 literal (e.g. `::1`) MUST be bracketed in a URL per RFC 3986 — * `http://::1:8000/` is not a valid URL (the last `:8000` is ambiguous with * the address itself). validateHost() already accepts the bracketed form * (`[::1]`), so this only adds brackets when they are not already present. * A hostname or IPv4 address (no colon) is returned unchanged. */ export declare function formatHostForUrl(host: string): string; /** * Returns a JavaScript source string that, when evaluated with `new Function`, * returns an object `{ renderMarkdown, renderInline }`. * Intended for unit-testing the Markdown renderer without a browser. * * Composes the shared rendererSourceLines() and appends the `return` that * exposes the functions to the test harness — so tests exercise the exact same * renderer source that buildSiteJs ships in the browser bundle. * * @example * const src = buildRendererJs(); * const { renderMarkdown, renderInline } = new Function(src)(); */ export declare function buildRendererJs(): string;