import { default as ActionTypes } from './action-types';
import { AddDataToMapOptions, AddDataToMapPayload, Bounds, UiState, ParsedConfig, ProtoDataset } from '@kepler.gl/types';
type Handler = (...args: any) => any;
export type ActionHandler = (...args: Parameters) => void;
export type ActionHandlers = {
[K in keyof T]: ActionHandler;
};
/**
* Add data to kepler.gl reducer, prepare map with preset configuration if config is passed.
* Kepler.gl provides a handy set of utils to parse data from different formats to the `data` object required in dataset. You rarely need to manually format the data obejct.
*
* Use `KeplerGlSchema.getConfigToSave` to generate a json blob of the currents instance config.
* The config object value will always have higher precedence than the options properties.
*
* Kepler.gl uses `dataId` in the config to match with loaded dataset. If you pass a config object, you need
* to match the `info.id` of your dataset to the `dataId` in each `layer`, `filter` and `interactionConfig.tooltips.fieldsToShow`
*
* @memberof main
* @param {Object} data
* @param {Array