import type { WidgetRenderMeta, WidgetRenderOut, WidgetStats } from '../../client/lib/contract/types'; /** Render the card. Returns null when there is nothing to say (no log at all, or * every day of the window is 0) — a chart of flat zeroes is an empty tile, and the * family rule is 没有数据就不出现. */ declare function heatmapBarsRender(stats: WidgetStats, meta?: WidgetRenderMeta): WidgetRenderOut | null; /** Preview usage log: a plausible working month — light weekends, a weekday * baseline that swings, a heavy session every ten days — generated relative to * TODAY the way the shared preview data is, so the preview shows the real card * shape on any date with today on the right edge. A thunk, not a frozen literal: a * long-lived session would otherwise leave the preview stranded in the past. * * Every day is NON-ZERO on purpose: empty days are a real state of the live data, * but in a preview they read as "the window does not cover 30 days" (a 3px muted * stub is invisible), which is a defect report about the wrong thing. */ declare function previewStats(): Partial; declare const _default: { id: string; name: () => string; desc: () => string; builtin: true; group: string; sizes: ("2x2" | "2x4")[]; render: typeof heatmapBarsRender; configSchema: { key: string; label: () => string; type: "mode"; default: string; options: [string, () => string][]; hint: () => string; }[]; example: { stats: typeof previewStats; sim: { range: string; }; simSteps: { range: string; }[]; }; simToggle: () => string; }; export default _default;