import type { ColorValue } from 'react-native'; import type { InteractionColorState, InteractionDirection } from '../../color-lib/types'; import type { NormalizedThemeAppearance } from '../../types/appearance.types'; import type { FlexColorDescription, FlexTokenDescription, FlexTokens, InteractiveColor } from '../tokens.types'; import type { InteractiveColorToken } from './interactiveTokens'; /** * Compute one interaction state for a Flex token from its rest value. High * contrast and rest values the raw engine cannot map, such as native platform * colors, resolve to the rest value itself. */ export declare function deriveInteractionColor(rest: ColorValue, token: InteractiveColorToken, state: InteractionColorState, direction: InteractionDirection, appearance: Readonly): ColorValue; /** * Resolve one authored color for an appearance. Explicit states win. Omitted * states of interactive tokens are computed on first read from rest, using the * description's type for direction; other tokens and high contrast use rest. * Outside high contrast, a fixed interactive color whose rest the engine can * map must author every state, and throws here otherwise. */ export declare function resolveFlexColor(token: string, description: FlexColorDescription, appearance: Readonly): InteractiveColor; /** Resolve a normalized token description for an appearance. */ export declare function resolveFlexTokenDescription(description: FlexTokenDescription, appearance: Readonly): FlexTokens; //# sourceMappingURL=interactionPolicy.d.ts.map