// Type declarations for og-prerender.mjs (plain ESM build helper).
export interface OgEntry {
image: string;
title: string;
description: string;
/** Punchier social-card title; falls back to `title` for the
tag. */
ogTitle?: string;
}
export interface OgInjectOptions {
ogBase?: string;
pageUrlPath?: string | null;
}
export interface OgManifest {
default: OgEntry;
byTool: Record;
byPath: Record;
}
export function escapeHtml(value: string): string;
export function buildOgTags(entry: OgEntry, opts?: OgInjectOptions): string;
export function injectOg(
html: string,
entry: OgEntry,
opts?: OgInjectOptions,
): string;
export function prerenderOg(args: {
distDir: string;
manifest: OgManifest;
ogBase?: string;
baseHref?: string;
}): Promise;