import { defineWidget } from '../../client/lib/contract/helpers'; import type { WidgetRenderMeta, WidgetStats } from '../../client/lib/contract/types'; /** Token usage heatmap card — a GitHub-style daily grid coloured by volume. * The 2×2 size shows the rolling ~3-month calendar (window alignment * user-configurable) with a legend under the title (two plain figures: * today / window total). The 2×4 size shows a ~7-month (30-week) rolling grid * — all recent usage points at a glance — with the two figures moved into the * title row's right side (headRight) and the grid horizontally centred. */ declare function heatmapRender(stats: WidgetStats, meta?: WidgetRenderMeta): ReturnType['render']>>; /** Widget-owned preview builder: the shell asks for the EXAMPLE stats with the * current per-instance config, so the 2×2 preview honors the window-alignment * mode (rolling: today on the right / quarter: aligned to calendar quarter) * exactly like the real collector — the config edit is visible in the preview. * Mirrors the shell preview logic that used to live in components.tsx. */ declare function previewStats(config: Record): Partial; declare const _default: { id: string; name: () => string; desc: () => string; builtin: true; group: string; sizes: ("2x2" | "2x4")[]; render: typeof heatmapRender; configSchema: { key: string; label: () => string; type: "mode"; default: string; options: ([string, string] | [string, () => string])[]; }[]; example: { stats: typeof previewStats; }; }; export default _default;