import type { Location } from './location.js';
/**
 * Props to configure any Layer with custom coloring
 * @typeParam T - Object extending Location
 */
export interface LocationColorProps<T extends Location> {
    /** Custom color to apply to the layer */
    color?: string | ((item: T) => string);
}
/**
 * Props to configure any Layer with legend coloring
 */
export interface LegendColorLayerProps {
    /** When the color prop is set to 'legend', a value accessor is needed */
    color: 'legend';
    /** The value accesor to map data point values to legend color */
    valueAccessor: string;
}
/**
 * Props to configure any Layer with custom coloring
 * @typeParam T - Object extending a record of string keys and any type of values
 */
export interface ChoroplethCustomColorProps<T extends Record<string, unknown>> {
    /** Color to apply to the layer */
    color?: string | ((item: T) => string);
}
/**
 * Detects whether color is linked to legend or not
 * @param props - layer color props
 */
export declare function isLegendColoring(props: LocationColorProps<never> | ChoroplethCustomColorProps<never> | LegendColorLayerProps): props is LegendColorLayerProps;
