1+ import type { Rule , Node } from 'postcss'
2+ import type { Config } from 'tailwindcss'
13export type CacheStrategy = 'merge' | 'overwrite'
24
35export interface CacheOptions {
@@ -29,3 +31,52 @@ export interface TailwindcssPatcherOptions {
2931 cache ?: CacheOptions | boolean
3032 patch ?: PatchOptions
3133}
34+
35+
36+ export type TailwindcssClassCache = Map <
37+ string ,
38+ (
39+ | {
40+ layer : string
41+ options : Record < string , any >
42+ sort : Record < string , any >
43+ }
44+ | Rule
45+ ) [ ]
46+ >
47+
48+ export type TailwindcssRuntimeContext = {
49+ applyClassCache : Map < any , any >
50+ candidateRuleCache : Map < string | String , Set < [ {
51+ arbitrary : any
52+ index : any
53+ layer : string
54+ options : any [ ]
55+ parallelIndex : any
56+ parentLayer : string
57+ variants : any
58+ } , Node ] > >
59+ candidateRuleMap : Map < string | String , [ object , Node ] [ ] >
60+ changedContent : any [ ]
61+ classCache : TailwindcssClassCache
62+ disposables : any [ ]
63+ getClassList : Function
64+ getClassOrder : Function
65+ getVariants : Function
66+ markInvalidUtilityCandidate : Function
67+ markInvalidUtilityNode : Function
68+ notClassCache : Set < String >
69+ offsets : {
70+ layerPositions : object
71+ offsets : object
72+ reservedVariantBits : any
73+ variantOffsets : Map < string , any >
74+ }
75+ postCssNodeCache : Map < object , [ Node ] >
76+ ruleCache : Set < [ object , Node ] >
77+ stylesheetCache : Record < string , Set < any > >
78+ tailwindConfig : Config
79+ userConfigPath : string | null
80+ variantMap : Map < string , [ [ object , Function ] ] >
81+ variantOptions : Map < string , object >
82+ }
0 commit comments