import { LegendCfg, MarkerCfg } from '@antv/g2/lib/interface'; import { Legend } from '@antv/g2plot/lib/types/legend'; declare type ColorNode = { [key: string]: string; }; declare type Params = Omit & { colors?: ColorObject; marker?: LegendCfg['marker'] | Array | MarkerCfg[]; }; export declare function getLegend(params: Params): Legend; export {};