/** * v0.5.11 — per-template card rendering helpers. * * One shared module called by console, markdown, and html formatters. * Each exported function takes a `Template[]` and returns a format-specific * string segment. The formatters splice it in above the per-URL findings list * when `summary.templates.length >= 2 && !opts.legacyFlat`. */ import type { Template } from "../types.js"; /** Options shared across all per-template card renderers. */ export interface TemplateCardOptions { /** When true, skip per-template cards entirely (--legacy-flat). */ legacyFlat?: boolean; /** * When set, highlight / annotate the matching template card. * Silently ignored when no template matches the signature. */ filterTemplate?: string; } /** True when templates array is present, has ≥2 entries, and not legacy-flat. */ export declare function shouldRenderTemplateCards(templates: Template[] | undefined, opts: TemplateCardOptions): boolean; /** * Render per-template cards for the console formatter. * Returns an empty string when there is nothing to render. */ export declare function renderTemplateCardsConsole(templates: Template[], opts: TemplateCardOptions, noColor?: boolean): string; /** * Render per-template cards for the markdown formatter. * Returns an empty string when there is nothing to render. */ export declare function renderTemplateCardsMarkdown(templates: Template[], opts: TemplateCardOptions): string; /** * Render per-template cards for the HTML formatter. * Returns an empty string when there is nothing to render. * The caller must ensure the CSS variables and existing styles are in scope — * this helper generates markup only, no