import { type IRgbColorValue } from "@gooddata/sdk-model"; import { type IColorLegendItem, type IColorStrategy } from "@gooddata/sdk-ui-vis-commons"; import { type IPushpinColor } from "../../../types/geoData/pushpin.js"; /** * Generates a color palette from a base color * * @remarks * Creates a gradient palette with lighter shades, useful for color scales * * @param baseColor - Base color as RGB string or object * @param opacity - Opacity value (0-1) * @returns Array of color strings from light to dark * * @internal */ export declare function getColorPalette(baseColor: string | IRgbColorValue, opacity?: number): string[]; /** * Converts RGB color to RGBA with opacity * * @param color - RGB color string * @param opacity - Opacity value (0-1) * @returns RGBA color string * * @internal */ export declare function rgbToRgba(color: string, opacity?: number): string; /** * Gets the color palette index for a given value * * @param value - Value to map to palette * @param min - Minimum value in range * @param max - Maximum value in range * @returns Index in the color palette (0 to DEFAULT_PUSHPIN_COLOR_SCALE - 1) * * @internal */ export declare function getColorIndexInPalette(value: number | null, min: number, max: number): number; /** * Type for color palette mapping by segment name */ type ColorPaletteMapping = { [itemName: string]: string[]; }; /** * Creates a mapping of segment element URIs to color palettes * * @param colorStrategy - Color strategy from visualization * @returns Map of segment element URIs to color palettes * * @internal */ export declare function getColorPaletteMapping(colorStrategy: IColorStrategy): ColorPaletteMapping; /** * Generates pushpin colors based on color and segment values * * @remarks * Determines border and background colors for each pushpin based on: * - Color measure values * - Segment values * - Color strategy * * @param colorValues - Array of color measure values (can be null) * @param segmentValues - Array of segment element URIs * @param colorStrategy - Color strategy for palette generation * @returns Array of pushpin color configurations * * @internal */ export declare function getPushpinColors(colorValues: ReadonlyArray, segmentValues: string[] | undefined, colorStrategy: IColorStrategy): IPushpinColor[]; /** * Generates legend color data for a color measure * * @param colorSeries - Array of color values * @param colorString - Base color as string * @returns Array of color legend items with ranges * * @internal */ export declare function generateLegendColorData(colorSeries: number[], colorString: string): IColorLegendItem[]; export {}; //# sourceMappingURL=palette.d.ts.map