import { GenericAccessor } from '../types/accessor'; import { FillPattern, FillPatternType, LinePattern, LinePatternType } from '../styles/patterns'; /** Attribute set on chart paths to carry the series index, used by the `theme-patterns` CSS fallback. */ export declare const UNOVIS_PATTERN_INDEX_ATTR = "unovis-pattern-index"; /** Resolves a `pattern` accessor (constant or function) to a built-in pattern definition, or `null`. */ export declare function getPattern(d: T, accessor: GenericAccessor, index?: number): FillPattern | LinePattern | null; /** Returns the CSS `mask` value (`url(#...)`) for a resolved fill pattern, or `null`. */ export declare function getFillPatternValue(p: FillPattern | LinePattern | null): string | null; /** * Returns the marker `url(#...)` and dash array for a resolved line pattern. * Uses a shared `context-stroke` marker that inherits the path color when supported, otherwise * injects a color-specific marker into the chart SVG (`color` and `context` are only needed for the fallback). */ export declare function getLinePatternValue(p: FillPattern | LinePattern | null, color?: string | null, context?: Element | null): { marker: string | null; dashArray: string | null; } | null;