import type { SizeLegendConfigInterface } from '@cosmograph/ui'; export interface CosmographSizeLegendConfigInterface { /** * Whether to use the data from the links instead of the points for the size legend. * Default: `false` */ useLinksData?: boolean; /** * The maximum size of points/links to show in the size legend. Points/links with a size greater than this value will cause the legend to hide. */ hideWhenSizeMoreThan?: number; /** * Whether to select the points/links with the corresponding values when clicking on the legend elements. * Default: `true` */ selectOnClick?: boolean; /** * The custom extent to use for the size legend, specified as a tuple of [min, max] values. * If not provided, the legend will automatically determine the extent based on the data. */ overrideExtent?: [number, number]; /** * Whether to use quantiles to get size legend min/max. * Has no effect if {@link useLinksData} is `false` and active point size strategy is {@link PointSizeStrategy.PreciseDegree} (won't use quantiles) or {@link PointSizeStrategy.Degree} (will always use quantiles). */ useQuantiles?: boolean; /** * Preserves the selection on unmount. * * @default false */ preserveSelectionOnUnmount?: boolean; /** * The label for the legend. Can be a string or a function that returns a string based on an accessor. */ labelResolver?: (accessor?: string) => string; } export declare const defaultCosmographSizeLegendConfig: CosmographSizeLegendConfig; export interface CosmographSizeLegendConfig extends CosmographSizeLegendConfigInterface, Omit { }