import { type Formats } from './formats'; import { type Plan, type Row, type WorksheetModel } from './types'; /** How marks that share a position pile up. Only bars and areas do. */ export declare function stackMode(plan: Plan): false | 'stack' | 'normalize' | 'center'; /** * Builds the axis layouts and sparse panes. The members under a header are the union of * what occurs anywhere along the other axis, so a pane without a record for some member * still leaves that member's slot empty. Absent intersections allocate no pane. * With spec.fit and a target size, leaf steps are scaled so the sheet fills the target. * With spec.stretch, the target is the window the sheet scrolls in: continuous slots share what the * member steps leave of it, and target.scrollbar is the thickness of a scroll bar, which takes * its room from the other direction when the sheet does not fit. * target.headerWidth caps the total width of the row headers. target.font is the font texts are measured in. * formats says how numbers, dates and the sheet's own words are written; the labels built here already follow it. * zoom replaces the range of the axes it names; marks outside a zoomed range are cut off at the edge of their pane. */ /** Ranges that replace what the data asks for, by the key of the axis scale. */ export type Zoom = Readonly>; export declare function buildModel(plan: Plan, results: Map, target?: { width: number; height: number; headerWidth?: number; font?: string; scrollbar?: number; }, formats?: Formats, zoom?: Zoom): WorksheetModel;