/** * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author David Sehnal */ import { Color } from './index.js'; import { ScaleLegend, TableLegend } from '../legend.js'; import { ParamDefinition as PD } from '../param-definition.js'; import { ColorListName } from './lists.js'; type PaletteType = 'generate' | 'colors'; declare const DefaultGetPaletteProps: { type: PaletteType; colorList: ColorListName; }; type GetPaletteProps = typeof DefaultGetPaletteProps; export declare function getPaletteParams(props?: Partial): { palette: PD.Mapped, "generate"> | PD.NamedParams, "colors">>; }; declare const DefaultPaletteProps: PD.Values<{ palette: PD.Mapped, "generate"> | PD.NamedParams, "colors">>; }>; type PaletteProps = typeof DefaultPaletteProps; declare const DefaultLabelOptions: { valueLabel: (i: number) => string; minLabel: string; maxLabel: string; }; type LabelOptions = typeof DefaultLabelOptions; export interface Palette { color: (i: number) => Color; legend?: TableLegend | ScaleLegend; } export declare function getPalette(count: number, props: PaletteProps, labelOptions?: Partial): { color: (i: number) => Color; legend: TableLegend | ScaleLegend; }; export {};