/** * The per-series encodings applied while `(forced-colors: active)` matches, shared by every chart * in this family so a consumer sees one vocabulary across ``, ``, and * ``. * * Forced-colors mode exposes only a handful of system colors, so the eight-entry * `--lr-color-chart-*` ramp is deliberately remapped onto a repeating three-value cycle in * `internal/specialist-tokens.styles.ts`. Series 1/4/7 then paint in literally the same color. * Texture, line dash, and point shape are the channels that keep those repeated colors apart * without substituting an arbitrary author color the user's high-contrast theme never asked for. * Nothing here is opt-in: the encodings only exist while the media query matches. */ export declare const FORCED_COLOR_ENCODINGS:readonly[{readonly name:'solid';readonly dash:number[];readonly pointStyle:'circle';},{readonly name:'horizontal';readonly dash:readonly[2,2];readonly pointStyle:'rect';},{readonly name:'vertical';readonly dash:readonly[8,3];readonly pointStyle:'triangle';},{readonly name:'diagonal';readonly dash:readonly[8,3,2,3];readonly pointStyle:'rectRot';},{readonly name:'reverse-diagonal';readonly dash:readonly[1,3];readonly pointStyle:'cross';},{readonly name:'crosshatch';readonly dash:readonly[10,2];readonly pointStyle:'crossRot';},{readonly name:'dots';readonly dash:readonly[6,2,1,2];readonly pointStyle:'star';},{readonly name:'checker';readonly dash:readonly[12,3,3,3];readonly pointStyle:'line';}];export type ForcedColorEncodingName=(typeof FORCED_COLOR_ENCODINGS)[number]['name']; /** The encoding for a series index, cycling once the ramp runs out. */ export declare function forcedColorEncoding(index:number):(typeof FORCED_COLOR_ENCODINGS)[number]; /** * Whether the view is rendering under a forced-color palette. Wrapped in `try`/`catch` because a * detached or cross-origin-restricted view can throw on `matchMedia`, and a missing accommodation * must never take the chart down with it. */ export declare function forcedColorsActive(view?:Window|null):boolean; /** * Builds a small deterministic `CanvasPattern` for a series index, painting `texture` over * `background`. Returns `background` unchanged whenever a pattern cannot be produced (no 2d * context, `createPattern()` declining), so a caller can always assign the result straight to a * Chart.js color slot. */ export declare function createForcedColorPattern(doc:Document,index:number,background:string,texture:string):CanvasPattern|string; /** * The DOM legend's half of the same accommodation, shared verbatim by every chart in this family. * `data-encoding` is emitted only while `(forced-colors: active)` matches, so these rules stay * inert otherwise and need no media query of their own. The inline system color remains one * channel; the texture mirrors whatever the plot painted, so repeated colors stay distinct in the * legend too. The swatch is the data key, so it opts out of forced-color adjustment; its enclosing * button and focus chrome stay system-controlled. */ export declare const forcedColorLegendSwatchStyles:import("lit").CSSResult;