import type { AuditReport } from "./audit-report.js"; /** * Candidate locations for the built template, relative to this module (`__dirname` * is the compiled `dist/` at runtime, or `src/` under vitest). CommonJS output, so * we use `__dirname`, not `import.meta`. */ export declare function templatePath(): string | null; /** * Live-server info injected into the report when it's served by `audit --serve` * (not a static file): the per-run token the report must send on every adopt * POST. Absent for a plain static report — the buttons fall back to copy-command. */ export interface ServeInfo { readonly token: string; } /** * Inject the report JSON into a template by replacing the quoted placeholder * string with the JSON object literal. Pure — the testable core. Throws if the * template is missing the placeholder. When `serve` is given (the `--serve` * path), also sets `window.__VIGILES_SERVE__` so the report's adopt buttons POST * to the local server instead of copying the command. */ export declare function injectReportData(template: string, report: AuditReport, serve?: ServeInfo): string; /** * Render the self-contained HTML report (React template + injected data). Throws * if the template hasn't been built — the caller (writeAuditHtml) catches that and * skips the HTML, since the JSON + terminal report don't depend on it. Pass * `serve` to render the live (`--serve`) variant whose buttons POST. */ export declare function renderAuditHtml(report: AuditReport, serve?: ServeInfo): string; //# sourceMappingURL=audit-html.d.ts.map