import { z } from "zod/v4-mini"; //#region src/components/color/config.d.ts declare const colorNames: readonly ["primary", "secondary", "tertiary", "gray"]; type ColorName = (typeof colorNames)[number]; declare const namedColorSchema: z.ZodMiniObject<{ type: z.ZodMiniLiteral<"named">; name: z.ZodMiniEnum<{ gray: "gray"; primary: "primary"; secondary: "secondary"; tertiary: "tertiary"; }>; variant: z.ZodMiniNumber; }, z.core.$strip>; type NamedColor = z.infer; declare const defaultNamedColor: NamedColor; declare const rawColorSchema: z.ZodMiniObject<{ type: z.ZodMiniLiteral<"raw">; hex: z.ZodMiniString; }, z.core.$strip>; type RawColor = z.infer; declare const colorSchema: z.ZodMiniUnion; name: z.ZodMiniEnum<{ gray: "gray"; primary: "primary"; secondary: "secondary"; tertiary: "tertiary"; }>; variant: z.ZodMiniNumber; }, z.core.$strip>, z.ZodMiniObject<{ type: z.ZodMiniLiteral<"raw">; hex: z.ZodMiniString; }, z.core.$strip>]>; type Color = z.infer; type ColorInput = z.input; declare const brandPaletteSchema: z.ZodMiniObject<{ primary: z.ZodMiniString; secondary: z.ZodMiniDefault>>; tertiary: z.ZodMiniDefault>>; gray: z.ZodMiniString; }, z.core.$strip>; type BrandPalette = z.infer; //#endregion //#region src/lib/palette.d.ts declare const defaultBrandPalette: BrandPalette; declare const defaultFallbackColor = "#000000"; declare function getColorValue(color: Color | null, palette?: { primary: string; secondary: string | null; tertiary: string | null; gray: string; }, fallbackColor?: string): string; /** * Détermine si une couleur hexadécimale (#rgb, #rgba, #rrggbb, #rrggbbaa) * est un niveau de gris, c'est-à-dire que ses composantes R, G et B sont égales. */ declare function isGrayScale(hex: string): boolean; declare function isColorAvailable(colorName: ColorName, palette?: { primary: string; secondary: string | null; tertiary: string | null; gray: string; }): boolean; /** * Dérive une variante claire/sombre d'une couleur de palette : mix vers `white` * pour variant > 0, vers un gris neutre foncé (`#323232`, pas `black` — * mélanger vers du noir pur désature/salit la teinte) pour variant < 0. * `black`/`white` dérogent : ce sont déjà les bornes de la rampe, seul un mix * vers `black` a du sens pour elles (plage -100..0 imposée côté ColorPicker). * `#323232` est fixé en dur (pas `var(--color-gray-7)`) pour que le résultat * ne s'inverse pas silencieusement sous `.dark`, où ce token désigne un gris clair. */ declare function applyColorVariant(base: string, variant: number): string; declare function isColorDark(color: Color, palette?: { primary: string; secondary: string | null; tertiary: string | null; gray: string; }): boolean; //#endregion export { defaultNamedColor as _, isColorAvailable as a, BrandPalette as c, ColorName as d, NamedColor as f, colorSchema as g, colorNames as h, getColorValue as i, Color as l, brandPaletteSchema as m, defaultBrandPalette as n, isColorDark as o, RawColor as p, defaultFallbackColor as r, isGrayScale as s, applyColorVariant as t, ColorInput as u, namedColorSchema as v, rawColorSchema as y }; //# sourceMappingURL=palette-CnNPXdwC.d.mts.map