import React from "react"; import { ImageStyle, RecursiveArray, RegisteredStyle, TextStyle, ViewStyle } from "react-native"; import { Classes, PseudoClasses, StyleClass } from "./class/StyleClass"; import { Falsy } from "./Utils"; import { StyleSelector, StyleSelectors } from "./selector/StyleSelector"; import { ChildQuery } from "./selector/ChildSelector"; export interface StyleScope { id: number; className: string; sheetId: number | null; staticStyle: StyleObject; staticImportantStyle: StyleObject | null; isSimple: boolean; hasSelectors: boolean; hasThemed: boolean; hasDynamicUnit: boolean; hasDynamicProps: boolean; dynamicProps: string[]; hasImportant: boolean; importantProps: string[]; resolvedStyling: Styling; selectors: StyleSelectors; scopes: Record; } export interface StylingResolution { stylingBuilder: StylingBuilder; rootScope: StyleScope; hasAnySelectors: boolean; hasAnyThemed: boolean; hasAnyDynamicProps: boolean; hasAnyImportant: boolean; } export declare type StyleObject = ViewStyle & TextStyle & ImageStyle; export declare type Style = StyleObject | RegisteredStyle; export declare type StylingBuilder = () => Styling; export declare type Styling = Record & S; export declare type StyleProp = RecursiveArray