import { type ITheme } from "@gooddata/sdk-model"; /** * Returns true if the provided value is a color string that the `polished` library can parse * (hex, rgb(a), hsl(a) or a named color). * * @remarks * `polished` is the single source of truth for what the theme application code can consume: * the same parser (`parseToRgb`) backs `mix`, `getContrast`, `shade`, `transparentize` and * `getLuminance`. Validating with it guarantees this check agrees exactly with the functions * that would otherwise throw on an unparseable color. * * @internal */ export declare const isValidThemeColor: (color: unknown) => boolean; /** * A palette color that cannot be parsed, together with its dot-separated location in the palette * (e.g. `complementary.c9` or `primary.base`). * * @internal */ export interface IInvalidThemeColor { path: string; value: string; } /** * Walks the theme palette and returns the colors that cannot be parsed, each with its location. * * @remarks * Only palette colors are inspected, as those are the values fed into the `polished` color * functions during theme application. An empty array means every palette color is valid. * * @internal */ export declare const findInvalidThemeColors: (theme: ITheme | undefined) => IInvalidThemeColor[]; //# sourceMappingURL=colorValidation.d.ts.map