'use strict'; import type { AnyRecord, ConfigPropertyAlias, ValueProcessor } from '../types'; type PropertyValueConfigBase

= | boolean // true - included, false - excluded | ConfigPropertyAlias

; // alias for another property type PropsBuilderPropertyConfig< P extends AnyRecord, K extends keyof P = keyof P, > = | PropertyValueConfigBase

| { // value can have any type as it is passed to CPP where we can expect a different // type than in the React Native stylesheet (e.g. number for colors instead of string) // eslint-disable-next-line @typescript-eslint/no-explicit-any process: ValueProcessor[K], any>; // for custom value processing }; export type PropsBuilderConfig

= { [K in keyof Required

]: PropsBuilderPropertyConfig; };