import { type ChartFillType, type IPatternOptionsObject } from "./types.js"; /** * SVG patterns used in series.color.pattern Highcharts config. * * The array index matches the color palette index. * * The name is used in visualisation property that maps selected pattern to a metric, i.e., changing it is * considered a breaking change. * * When a pattern "strokeWidth" is undefined, \{ "stroke": "none", "fill": currentColor \} is assumed. * * @internal */ export declare const PATTERN_FILLS: { name: string; pattern: IPatternOptionsObject; }[]; /** * Chart fill config is used to customize the chart fill. * * @internal */ export interface IChartFillConfig { /** * Type of the chart fill. */ type?: ChartFillType; /** * Custom mapping of selected pattern fill by measure. * The value is map of measure local identifiers per pattern name. * The property is used when type == "pattern". * When insight has a measure that is not mapped, the pattern will be assigned according to the * measure index, the same way as if no measure would be mapped. */ measureToPatternName?: Record; } /** * @internal */ export type IPatternFill = (typeof PATTERN_FILLS)[number]; /** * @internal */ export type PatternFillName = (typeof PATTERN_FILLS)[number]["name"]; /** * Returns pattern fill by index. * * @param index - Index of pattern fill. When the index is a number, it returns a pattern matching * the index number of the pattern array. When the index is out of bounds, the pattern fill is repeated. * When the index is a pattern name, the matching pattern is returned. If the pattern is not found, * the first pattern is returned. * * @internal */ export declare function getPatternFill(index: number | PatternFillName): IPatternOptionsObject; /** * Returns pattern fill by index. When index is out of bounds, the pattern fill is repeated. * @param index - index of pattern fill * * @internal */ export declare function getPatternFillByIndex(index: number): IPatternOptionsObject; /** * Returns pattern fill by key. * @param name - name of a pattern fill * * @internal */ export declare function getPatternFillByName(name: PatternFillName): IPatternOptionsObject | undefined; //# sourceMappingURL=patternFills.d.ts.map