/** * Showcase block renderers. * * Blocks that present work rather than structure it: a bento mosaic, a ticker, * a terminal session, a file tree, a before/after slider, KPI cards with * sparklines, a framed feature spotlight, and a checklist. * * The same rules as `blocks.ts` apply: pure functions of the node and the IR, * exactly one `data-ak-id` per block, no style attributes or handlers. Every * motion these blocks get comes from CSS or the runtime, and the markup is * complete without either, so the content reads the same in a PDF, a * screenshot, or with script disabled. */ import type { IrNode, NetworkPolicy } from '../ir.js'; import { type JsonValue } from '../json.js'; /** Minimal render context the showcase renderers need. */ export interface ShowcaseContext { ir: { policy: { network: NetworkPolicy; }; }; } type ShowcaseRenderer = (node: IrNode, context: ShowcaseContext) => string; /** An image allowed by the policy, or an honest note when it is not. */ export declare function framedImage(source: string, alt: string, policy: NetworkPolicy, loading?: 'lazy' | 'eager'): string; /** Browser chrome (decorative) around an image: the bar, then the viewport. */ export declare function browserShot(source: string, alt: string, address: string, policy: NetworkPolicy, loading?: 'lazy' | 'eager'): string; export declare function paragraph(className: string, text: string): string; /** A paragraph of prose: backtick spans become inline code. */ export declare function prose(className: string, text: string): string; interface TreeFile { name: string; status: string; note: string; } interface TreeDir { name: string; dirs: Map; files: TreeFile[]; } /** Build a folder tree from slash-separated paths; a trailing slash names an empty folder. */ export declare function buildFileTree(items: Record[]): TreeDir; /** Line and area paths for a sparkline, scaled into a fixed view box. */ export declare function sparkPaths(series: number[]): { line: string; area: string; end: [number, number]; }; export declare const SHOWCASE_RENDERERS: Record; export {}; //# sourceMappingURL=showcase-blocks.d.ts.map