import type { FilterFunction, TextStyle, ViewStyle } from 'react-native' import type { UnionToIntersection } from '../../types' import type { ToDeepUnistyles } from '../../types/stylesheet' export type ShadowOffset = ToDeepUnistyles<{ width: number; height: number }> export const TEXT_SHADOW_STYLES = ['textShadowColor', 'textShadowOffset', 'textShadowRadius'] as const export type TextShadow = Required> export const BOX_SHADOW_STYLES = ['shadowColor', 'shadowRadius', 'shadowOpacity', 'shadowOffset'] as const export type BoxShadow = Required> export type AllShadow = TextShadow & BoxShadow export type AllShadowKeys = keyof AllShadow type FilterKeys = keyof UnionToIntersection export type Filters = { [K in FilterKeys]: UnionToIntersection[K] }