import KeplerTable, { Field } from './table-utils/kepler-table'; import { Datasets } from '../reducers/vis-state-updaters'; import { ProtoDataset } from '../actions'; import { RGBColor } from 'reducers/types'; export declare const datasetColorMaker: Generator; /** @type {typeof import('./dataset-utils').getNewDatasetColor} */ export declare function getNewDatasetColor(datasets: Datasets): RGBColor; /** * Take datasets payload from addDataToMap, create datasets entry save to visState */ export declare function createNewDataEntry({ info, data, ...opts }: ProtoDataset, datasets?: Datasets): Datasets; /** * Choose a field to use as the default color field of a layer. * * The heuristic is: * * First, exclude fields that are on the exclusion list and don't * have names that suggest they contain metrics. Also exclude * field names that are blank. * * Next, look for a field that is of real type and contains one * of the preferred names (in order of the preferred names). * * Next, look for a field that is of integer type and contains * one of the preferred names (in order of the preferred names). * * Next, look for the first field that is of real type (in order * of field index). * * Next, look for the first field that is of integer type (in * order of field index). * * It's possible no field will be chosen (i.e. because all fields * are strings.) * * @param dataset */ export declare function findDefaultColorField({ fields, fieldPairs }: KeplerTable): null | Field;