/** The words the sheet writes itself. A host replaces them to match its language. */ export interface Words { share: string; upperWhisker: string; upperQuartile: string; median: string; lowerQuartile: string; lowerWhisker: string; records: string; /** The ends of a legend whose range differs from pane to pane. */ low: string; high: string; /** What stands for a missing member. */ missing: string; /** The end of a legend list that does not fit, for `count` entries left out. */ more: (count: number) => string; /** Shown in place of a sheet whose queries returned nothing. */ empty: string; } /** * How the sheet writes numbers, dates and its own words. Every part is optional; what is * left out follows `locale`. */ export interface Formats { /** A BCP 47 language tag such as 'en-US' or 'zh-CN'. English when absent. */ locale?: string; /** A number in full: tooltips, labels and cells. */ number?: (value: number) => string; /** A number on an axis or at the end of a legend. Follows `number` when that is given, else it is abbreviated. */ tick?: (value: number) => string; /** A share between 0 and 1: the axis and tooltips of a normalized stack, the tooltip of a pie slice. */ share?: (value: number) => string; /** * A moment, as milliseconds to be read in UTC: tooltips and labels of a time field, and the * members of a discrete time field that has no unit. Ticks of a time axis pick their own * format by the spacing between them and are not affected. */ time?: (ms: number) => string; words?: Partial; } /** Formats with nothing left out. */ export interface Format { locale: string; number: (value: number) => string; tick: (value: number) => string; /** * The ticks of one axis, or the steps of one legend, written so that they can be told apart. The standard * tick keeps one decimal; where that makes two different values read the same, as on an axis of small * ratios, decimals are added. A format of the host's is used as it is. */ ticks: (values: number[]) => string[]; share: (value: number) => string; time: (ms: number) => string; /** Parts of a date for the ticks of a time axis, in UTC. */ date: Record<'year' | 'month' | 'monthYear' | 'day' | 'time' | 'seconds', (ms: number) => string>; words: Words; } export declare const englishWords: Words; /** Fills in what a host left out. The result is kept per input object, so resolving again is free. */ export declare function resolveFormats(formats?: Formats): Format;