import { OxGristRenderer } from './ox-grist-renderer.js'; /** A point of a sparkline: a value, an expected value drawn apart, or nothing - a gap. */ export type SparklinePoint = number | null | undefined; /** * The value of a `sparkline` column: the values month by month, oldest first - a missing month is `null`, a gap - and * optionally the months still to come, `expected`, drawn after them, dashed. */ export type SparklineValue = SparklinePoint[] | { values: SparklinePoint[]; expected?: SparklinePoint[]; }; /** * Where each point of a sparkline goes in a 100 × 24 box: the runs between gaps, each a list of `[x, y]`, and which * points are the expected ones. The lowest value is at the bottom and the highest at the top; a flat line is in the * middle. Pure. */ export declare function sparklineRuns(value: SparklineValue | null | undefined): { actual: [number, number][][]; expected: [number, number][][]; last: [number, number] | null; }; /** * `sparkline` - a small line of a series in a cell (12 months of a cost, say). A gap where a month has no value, the * months still to come dashed, the last value a dot. The column's `record.options.title(value, record)` gives the cell's * tooltip - the numbers it draws, in words. */ export declare class OxGristRendererSparkline extends OxGristRenderer { static styles: import("lit").CSSResult; get rendererTemplate(): import("lit-html").TemplateResult<1>; }