import type { StyleProp, ViewStyle, ViewProps } from 'react-native'; import type { SystemPalette } from '../../theme/global'; import type { BorderWidths, Radii } from '../../theme/global/borders'; import type { Space } from '../../theme/global/space'; import type { ConfigType, FlexPropsKeyType } from './config'; export interface ThemeScale { colors: keyof SystemPalette; space: keyof Space; radii: keyof Radii; borderWidths: keyof BorderWidths; } type ConfigKeyType = keyof ConfigType; export type StyleProps = { [key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']]; }; export type FlexStyleProps = Pick, FlexPropsKeyType>; export interface BoxViewProps extends ViewProps { /** * Box's content. */ children?: React.ReactNode; /** * Addtional styles. */ style?: StyleProp; /** * Testing id of the component. */ testID?: string; } export {};