/**
* SvStat - a KPI / metric card: a label, a big value, and an optional delta with
* an up/down trend (auto-coloured; green up / red down, or inverted for
* "lower is better" metrics), plus slots for an icon and an inline chart
* (e.g. a sparkline). Theme-driven. The dashboard building block.
*
* ```svelte
*
* ```
*/
import type { Snippet } from 'svelte';
type Trend = 'up' | 'down' | 'flat';
type Props = {
label: string;
value: string | number;
/** A number (auto-signs + infers trend) or a preformatted string. */
delta?: string | number;
/** Override the inferred trend. */
trend?: Trend;
/** Text after the delta (e.g. "vs last month"). */
hint?: string;
/** Treat a downward delta as good (green) - e.g. error rate, latency. */
invert?: boolean;
icon?: Snippet;
/** Inline chart / sparkline slot. */
chart?: Snippet;
};
declare const SvStat: import("svelte").Component;
type SvStat = ReturnType;
export default SvStat;