import type { ColorValue } from 'react-native'; import type { ThemeColorScheme } from '../../types/appearance.types'; import type { ColorEntry, FlexColorDescription, FlexColorInput, InteractiveColor, InteractiveColorOptions, InteractiveColorType } from '../tokens.types'; /** The appearance field that selects a light/dark color tuple entry. */ export type ColorSchemeSelector = { readonly colorScheme: ThemeColorScheme; }; /** * Normalize one authored color into a frozen description with an explicit * type. Package-normalized descriptions are returned unchanged. * @internal */ export declare function normalizeFlexColor(value: FlexColorInput, defaultType?: InteractiveColorType, label?: string): FlexColorDescription; /** * Normalize an authored Flex color. A single value applies to every scheme, * and a tuple selects `[light, dark]`. The second argument sets the * interaction type unless `value.type` is supplied. Arguments are never * mutated; the result is a new frozen options object. */ export declare function flexColor(value: FlexColorInput, colorType?: InteractiveColorType): InteractiveColorOptions; /** * Select the color for a scheme from an authored rest or explicit state entry. */ export declare function selectColorEntry(entry: ColorEntry, appearance: ColorSchemeSelector): ColorValue; /** * Resolve a description without interaction algorithms: omitted states equal * rest. Used by defaults and legacy adapters, whose fallback ownership must * not change. * @internal */ export declare function resolveExplicitFlexColor(description: FlexColorDescription, appearance: ColorSchemeSelector): InteractiveColor; //# sourceMappingURL=flexColor.d.ts.map