import { PropertiesFallback, PropertiesHyphenFallback, SimplePseudos } from 'csstype'; interface CSSCustomProperties { '--tw-rotate'?: string; '--tw-gradient-stops'?: string; } interface CSSProperties extends PropertiesFallback, PropertiesHyphenFallback, CSSCustomProperties { } declare type Falsy = '' | 0 | -0 | false | null | undefined | void; declare type MaybeArray = T | readonly T[]; interface TWCallable { (strings: TemplateStringsArray, ...interpolations: Token[]): string; (...tokens: Token[]): string; } interface TW extends TWCallable { theme: ThemeResolver; } interface Context { /** Allow composition */ readonly tw: TWCallable; /** Access to theme values */ readonly theme: ThemeResolver; /** Create unique identifier (group, custom properties) */ readonly tag: (key: string) => string; readonly css: (rule: Rule[] | string) => CSSRules; } interface Instance { readonly tw: TW; readonly setup: (options?: Configuration) => void; } declare type MaybeThunk = T | ((context: Context) => T); interface Preflight { (preflight: CSSRules, context: Context): MaybeThunk; } interface ThemeConfiguration extends Partial { extend?: Partial; } interface SheetConfig { /** * Sets a cryptographic nonce (number used once) on the enclosing `