@csszyx/unplugin 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/index.cjs +19 -2
  2. package/dist/index.d.cts +91 -5
  3. package/dist/index.d.mts +90 -3
  4. package/dist/index.mjs +4 -2
  5. package/dist/next-prebuild.cjs +148 -0
  6. package/dist/next-prebuild.d.cts +66 -0
  7. package/dist/next-prebuild.d.mts +66 -0
  8. package/dist/next-prebuild.mjs +131 -0
  9. package/dist/next-turbo-loader.cjs +210 -0
  10. package/dist/next-turbo-loader.d.cts +68 -0
  11. package/dist/next-turbo-loader.d.mts +66 -0
  12. package/dist/next-turbo-loader.mjs +190 -0
  13. package/dist/next-watcher.cjs +237 -0
  14. package/dist/next-watcher.d.cts +106 -0
  15. package/dist/next-watcher.d.mts +106 -0
  16. package/dist/next-watcher.mjs +219 -0
  17. package/dist/shared/unplugin.8er8o6rn.mjs +276 -0
  18. package/dist/shared/unplugin.B_U4rZvG.cjs +281 -0
  19. package/dist/shared/{unplugin.BEOG6ePC.mjs → unplugin.BbtspS8t.mjs} +1436 -324
  20. package/dist/shared/unplugin.BceVw1eW.mjs +184 -0
  21. package/dist/shared/unplugin.BtQzlC2C.mjs +567 -0
  22. package/dist/shared/{unplugin.CL0F6RZa.cjs → unplugin.CFp386gH.cjs} +1456 -327
  23. package/dist/shared/unplugin.CPEWNSA0.d.cts +77 -0
  24. package/dist/shared/unplugin.CPEWNSA0.d.mts +77 -0
  25. package/dist/shared/unplugin.CScQRdTp.d.cts +15 -0
  26. package/dist/shared/unplugin.CScQRdTp.d.mts +15 -0
  27. package/dist/shared/unplugin.CdZxp0x-.d.mts +16 -0
  28. package/dist/shared/unplugin.DLrBgECN.d.cts +282 -0
  29. package/dist/shared/unplugin.DLrBgECN.d.mts +282 -0
  30. package/dist/shared/unplugin.DUxdYaSG.cjs +205 -0
  31. package/dist/shared/unplugin.s62yJbu1.cjs +591 -0
  32. package/dist/shared/unplugin.xeED_qwh.d.cts +16 -0
  33. package/dist/vite.cjs +3 -1
  34. package/dist/vite.d.cts +2 -1
  35. package/dist/vite.d.mts +2 -1
  36. package/dist/vite.mjs +3 -1
  37. package/dist/webpack.cjs +3 -1
  38. package/dist/webpack.d.cts +2 -1
  39. package/dist/webpack.d.mts +2 -1
  40. package/dist/webpack.mjs +3 -1
  41. package/package.json +41 -8
  42. package/dist/shared/unplugin.DUbr5w-N.d.cts +0 -49
  43. package/dist/shared/unplugin.DUbr5w-N.d.mts +0 -49
@@ -0,0 +1,77 @@
1
+ /** JSON-compatible value used for cache identity material. */
2
+ type JsonLike = null | boolean | number | string | readonly JsonLike[] | {
3
+ readonly [key: string]: JsonLike | undefined;
4
+ };
5
+ /** Stable identity hashes used by manifests and transform cache keys. */
6
+ interface NextCacheIdentity {
7
+ configHash: string;
8
+ envHash: string;
9
+ generation: string;
10
+ }
11
+
12
+ /** Files used by the Next Turbopack safelist state machine. */
13
+ interface NextSafelistStatePaths {
14
+ cacheDir: string;
15
+ shardsDir: string;
16
+ snapshotPath: string;
17
+ outputPath: string;
18
+ }
19
+ /** Result returned after materializing shard records. */
20
+ interface NextSafelistMaterializeResult {
21
+ classCount: number;
22
+ sourceCount: number;
23
+ tombstonedSourceCount: number;
24
+ shardCount: number;
25
+ }
26
+ /** Options for atomic file writes that need to survive Windows file scanners. */
27
+ interface AtomicWriteOptions {
28
+ maxRetries?: number;
29
+ retryDelayMs?: number;
30
+ renameSync?: (from: string, to: string) => void;
31
+ }
32
+ /** Options used when acquiring a state lock. */
33
+ interface NextSafelistStateLockOptions {
34
+ pid?: number;
35
+ root?: string;
36
+ mode?: 'development' | 'production';
37
+ command?: string;
38
+ now?: number;
39
+ staleAfterMs?: number;
40
+ isProcessAlive?: (pid: number) => boolean;
41
+ hostname?: string;
42
+ token?: string;
43
+ }
44
+
45
+ /** Mode represented by a Next Turbopack generation manifest. */
46
+ type NextGenerationMode = 'development' | 'production';
47
+ /** Inputs expected by a loader/watcher before trusting a manifest. */
48
+ interface NextGenerationManifestExpectation {
49
+ root: string;
50
+ configHash: string;
51
+ envHash: string;
52
+ nextVersion: string;
53
+ csszyxVersion: string;
54
+ nativeVersion: string;
55
+ mode: NextGenerationMode;
56
+ }
57
+
58
+ /** Source used to resolve a Next app root. */
59
+ type NextAppRootSource = 'explicit' | 'loader-root-context' | 'loader-context' | 'cwd';
60
+ /** Resolved Next app root plus the source that won. */
61
+ interface NextAppRootResolution {
62
+ root: string;
63
+ source: NextAppRootSource;
64
+ }
65
+
66
+ /** Shared state context consumed by future watcher, prebuild, and loader code. */
67
+ interface NextStateContext {
68
+ root: string;
69
+ rootSource: NextAppRootResolution['source'];
70
+ cacheDir: string;
71
+ safelist: NextSafelistStatePaths;
72
+ manifestPath: string;
73
+ identity: NextCacheIdentity;
74
+ manifestExpectation: NextGenerationManifestExpectation;
75
+ }
76
+
77
+ export type { AtomicWriteOptions as A, JsonLike as J, NextStateContext as N, NextSafelistMaterializeResult as a, NextSafelistStateLockOptions as b };
@@ -0,0 +1,77 @@
1
+ /** JSON-compatible value used for cache identity material. */
2
+ type JsonLike = null | boolean | number | string | readonly JsonLike[] | {
3
+ readonly [key: string]: JsonLike | undefined;
4
+ };
5
+ /** Stable identity hashes used by manifests and transform cache keys. */
6
+ interface NextCacheIdentity {
7
+ configHash: string;
8
+ envHash: string;
9
+ generation: string;
10
+ }
11
+
12
+ /** Files used by the Next Turbopack safelist state machine. */
13
+ interface NextSafelistStatePaths {
14
+ cacheDir: string;
15
+ shardsDir: string;
16
+ snapshotPath: string;
17
+ outputPath: string;
18
+ }
19
+ /** Result returned after materializing shard records. */
20
+ interface NextSafelistMaterializeResult {
21
+ classCount: number;
22
+ sourceCount: number;
23
+ tombstonedSourceCount: number;
24
+ shardCount: number;
25
+ }
26
+ /** Options for atomic file writes that need to survive Windows file scanners. */
27
+ interface AtomicWriteOptions {
28
+ maxRetries?: number;
29
+ retryDelayMs?: number;
30
+ renameSync?: (from: string, to: string) => void;
31
+ }
32
+ /** Options used when acquiring a state lock. */
33
+ interface NextSafelistStateLockOptions {
34
+ pid?: number;
35
+ root?: string;
36
+ mode?: 'development' | 'production';
37
+ command?: string;
38
+ now?: number;
39
+ staleAfterMs?: number;
40
+ isProcessAlive?: (pid: number) => boolean;
41
+ hostname?: string;
42
+ token?: string;
43
+ }
44
+
45
+ /** Mode represented by a Next Turbopack generation manifest. */
46
+ type NextGenerationMode = 'development' | 'production';
47
+ /** Inputs expected by a loader/watcher before trusting a manifest. */
48
+ interface NextGenerationManifestExpectation {
49
+ root: string;
50
+ configHash: string;
51
+ envHash: string;
52
+ nextVersion: string;
53
+ csszyxVersion: string;
54
+ nativeVersion: string;
55
+ mode: NextGenerationMode;
56
+ }
57
+
58
+ /** Source used to resolve a Next app root. */
59
+ type NextAppRootSource = 'explicit' | 'loader-root-context' | 'loader-context' | 'cwd';
60
+ /** Resolved Next app root plus the source that won. */
61
+ interface NextAppRootResolution {
62
+ root: string;
63
+ source: NextAppRootSource;
64
+ }
65
+
66
+ /** Shared state context consumed by future watcher, prebuild, and loader code. */
67
+ interface NextStateContext {
68
+ root: string;
69
+ rootSource: NextAppRootResolution['source'];
70
+ cacheDir: string;
71
+ safelist: NextSafelistStatePaths;
72
+ manifestPath: string;
73
+ identity: NextCacheIdentity;
74
+ manifestExpectation: NextGenerationManifestExpectation;
75
+ }
76
+
77
+ export type { AtomicWriteOptions as A, JsonLike as J, NextStateContext as N, NextSafelistMaterializeResult as a, NextSafelistStateLockOptions as b };
@@ -0,0 +1,15 @@
1
+ import { SourceTransformResult } from '@csszyx/compiler';
2
+
3
+ /** Parser implementation that produced a cache entry. */
4
+ type TransformCacheProducer = 'babel' | 'babel-fallback' | 'oxc' | 'rust';
5
+
6
+ /** Parser mode supported by the Next Turbopack source transformer. */
7
+ type NextSourceParserMode = 'babel' | 'oxc' | 'rust';
8
+ /** Result of one source transform plus cache metadata for loader diagnostics. */
9
+ interface NextSourceTransformOutput {
10
+ result: SourceTransformResult;
11
+ cacheStatus: 'disabled' | 'hit' | 'miss' | 'write';
12
+ producer: TransformCacheProducer;
13
+ }
14
+
15
+ export type { NextSourceParserMode as N, NextSourceTransformOutput as a };
@@ -0,0 +1,15 @@
1
+ import { SourceTransformResult } from '@csszyx/compiler';
2
+
3
+ /** Parser implementation that produced a cache entry. */
4
+ type TransformCacheProducer = 'babel' | 'babel-fallback' | 'oxc' | 'rust';
5
+
6
+ /** Parser mode supported by the Next Turbopack source transformer. */
7
+ type NextSourceParserMode = 'babel' | 'oxc' | 'rust';
8
+ /** Result of one source transform plus cache metadata for loader diagnostics. */
9
+ interface NextSourceTransformOutput {
10
+ result: SourceTransformResult;
11
+ cacheStatus: 'disabled' | 'hit' | 'miss' | 'write';
12
+ producer: TransformCacheProducer;
13
+ }
14
+
15
+ export type { NextSourceParserMode as N, NextSourceTransformOutput as a };
@@ -0,0 +1,16 @@
1
+ import { a as NextSafelistMaterializeResult, b as NextSafelistStateLockOptions, A as AtomicWriteOptions } from './unplugin.CPEWNSA0.mjs';
2
+
3
+ /** Options for one synchronous watcher materialization cycle. */
4
+ interface NextWatcherCycleOptions {
5
+ lockOptions?: NextSafelistStateLockOptions;
6
+ writeOptions?: AtomicWriteOptions;
7
+ createdAt?: string;
8
+ }
9
+ /** Result returned by one watcher materialization cycle. */
10
+ interface NextWatcherCycleResult {
11
+ materialize: NextSafelistMaterializeResult;
12
+ manifestPath: string;
13
+ lockPath: string;
14
+ }
15
+
16
+ export type { NextWatcherCycleResult as N, NextWatcherCycleOptions as a };
@@ -0,0 +1,282 @@
1
+ import { GlobalVarUsageDiagnostic, CssVariableMangleValue, TransformSourceCodeOptions } from '@csszyx/compiler';
2
+ import { PartialCsszyxConfig } from '@csszyx/types';
3
+ import { Plugin } from 'esbuild';
4
+ import { InputPluginOption } from 'rollup';
5
+ import { UnpluginInstance, WebpackPluginInstance } from 'unplugin';
6
+ import { PluginOption } from 'vite';
7
+
8
+ /** Source location for one CSS custom-property occurrence. */
9
+ interface CssVarLocation {
10
+ /** Source file path, when known. */
11
+ filePath: string;
12
+ /** 1-based source line. */
13
+ line: number;
14
+ /** 1-based source column. */
15
+ column: number;
16
+ }
17
+ /** One CSS custom-property definition. */
18
+ interface CssVarDefinition extends CssVarLocation {
19
+ /** Custom-property name including the leading `--`. */
20
+ name: string;
21
+ /** Stable declaration scope key built from ancestor at-rules and selectors. */
22
+ scopeId: string;
23
+ /** Whether the definition lives inside a Tailwind v4 @theme block. */
24
+ tailwindOwned: boolean;
25
+ /** Whether this name is registered by an @property at-rule. */
26
+ registered: boolean;
27
+ }
28
+ /** One var(--token) reference. */
29
+ interface CssVarReference extends CssVarLocation {
30
+ /** Custom-property name including the leading `--`. */
31
+ name: string;
32
+ /** Stable reference scope key built from ancestor at-rules and selectors. */
33
+ scopeId: string;
34
+ /** Declaration property or at-rule params where the reference appears. */
35
+ owner: string;
36
+ /** Whether the reference lives inside a Tailwind v4 @theme block. */
37
+ tailwindOwned: boolean;
38
+ }
39
+ /** CSS custom-property scan output for one CSS source. */
40
+ interface CssVarScanResult {
41
+ /** Source file path, when known. */
42
+ filePath: string;
43
+ /** Custom-property declarations. */
44
+ definitions: CssVarDefinition[];
45
+ /** var(--token) references. */
46
+ references: CssVarReference[];
47
+ /** @property registered custom-property names. */
48
+ registered: string[];
49
+ /** Whether the file path appears to be third-party CSS. */
50
+ thirdParty: boolean;
51
+ }
52
+ /** Cache entry for one CSS variable scan result. */
53
+ interface GlobalVarScanCacheEntry {
54
+ /** Cache key derived from file path, mtime, and content hash. */
55
+ key: string;
56
+ /** Cached scan result. */
57
+ result: CssVarScanResult;
58
+ }
59
+ /** Inputs used to derive a scan cache key. */
60
+ interface GlobalVarScanCacheKeyInput {
61
+ /** Source file path. */
62
+ filePath: string;
63
+ /** CSS source text. */
64
+ css: string;
65
+ /** Source file mtime in milliseconds. */
66
+ mtimeMs: number;
67
+ }
68
+ /** CSS source supplied to the Phase H validation orchestrator. */
69
+ interface GlobalVarCssSource {
70
+ /** Source file path. */
71
+ filePath: string;
72
+ /** CSS source text. */
73
+ css: string;
74
+ /** Source file mtime in milliseconds, used when cacheDir is set. */
75
+ mtimeMs?: number;
76
+ }
77
+ /** JS/TS/JSX/TSX source supplied to the Phase H validation orchestrator. */
78
+ interface GlobalVarCodeSource {
79
+ /** Source file path. */
80
+ filePath: string;
81
+ /** JS/TS/JSX/TSX source text. */
82
+ code: string;
83
+ }
84
+ /** CSS asset supplied by a bundler output hook. */
85
+ interface GlobalVarCssAssetSource {
86
+ /** CSS asset file name, relative to the build output or absolute. */
87
+ fileName: string;
88
+ /** CSS asset source contents. */
89
+ source: string | Uint8Array;
90
+ /** Source file mtime in milliseconds, used when cacheDir is set. */
91
+ mtimeMs?: number;
92
+ }
93
+ /** Options for scanning one CSS source. */
94
+ interface ScanGlobalVarCssOptions {
95
+ /** File path used for diagnostics. */
96
+ filePath?: string;
97
+ }
98
+ /** Planner diagnostic severity. */
99
+ type GlobalVarAliasDiagnosticSeverity = 'error';
100
+ /** Planner diagnostic. */
101
+ interface GlobalVarAliasDiagnostic {
102
+ /** Machine-readable diagnostic code. */
103
+ code: 'missing-definition' | 'tailwind-reserved' | 'tailwind-owned' | 'registered-property' | 'alias-collision';
104
+ /** Diagnostic severity. Phase H M2 is fail-closed. */
105
+ severity: GlobalVarAliasDiagnosticSeverity;
106
+ /** Related custom-property name. */
107
+ name: string;
108
+ /** Human-readable message. */
109
+ message: string;
110
+ /** Source location when available. */
111
+ location?: CssVarLocation;
112
+ }
113
+ /** One planned alias mapping. */
114
+ interface GlobalVarAliasEntry {
115
+ /** Original app-owned custom-property name. */
116
+ original: string;
117
+ /** Deterministic short alias name. */
118
+ alias: string;
119
+ /** Declaration scopes where aliases must be emitted. */
120
+ scopes: string[];
121
+ }
122
+ /** Input to the pure global variable alias planner. */
123
+ interface PlanGlobalVarAliasesInput {
124
+ /** CSS scan results. */
125
+ scans: CssVarScanResult[];
126
+ /** Explicit app-owned custom-property names. */
127
+ tokens?: string[];
128
+ /** Optional app-owned prefix discovery. Empty string disables discovery. */
129
+ autoPrefix?: string;
130
+ /** Prefix for generated aliases. Defaults to `---g`. */
131
+ aliasPrefix?: string;
132
+ /** Additional reserved names or prefixes. Prefixes may end with `*`. */
133
+ reserved?: string[];
134
+ }
135
+ /** Output from the pure global variable alias planner. */
136
+ interface GlobalVarAliasPlan {
137
+ /** Deterministic alias entries. Empty when diagnostics contain errors. */
138
+ entries: GlobalVarAliasEntry[];
139
+ /** Original-to-alias lookup. Empty when diagnostics contain errors. */
140
+ aliases: Map<string, string>;
141
+ /** Planner diagnostics. */
142
+ diagnostics: GlobalVarAliasDiagnostic[];
143
+ }
144
+ /** Input for Phase H scanner/planner/diagnostics integration. */
145
+ interface ValidateGlobalVarAliasInputsOptions {
146
+ /** CSS sources that define or reference custom properties. */
147
+ cssFiles: GlobalVarCssSource[];
148
+ /** JS/TS/JSX/TSX sources to scan for out-of-band usage. */
149
+ sourceFiles?: GlobalVarCodeSource[];
150
+ /** Explicit app-owned custom-property names. */
151
+ tokens?: string[];
152
+ /** Optional app-owned prefix discovery. Empty string disables discovery. */
153
+ autoPrefix?: string;
154
+ /** Prefix for generated aliases. Defaults to `---g`. */
155
+ aliasPrefix?: string;
156
+ /** Additional reserved names or prefixes. Prefixes may end with `*`. */
157
+ reserved?: string[];
158
+ /** Optional global-var scan cache directory. */
159
+ cacheDir?: string;
160
+ }
161
+ /** Input for building validation options from bundler output state. */
162
+ interface CreateGlobalVarAliasValidationOptionsInput {
163
+ /** Project root used to normalize relative asset names. */
164
+ rootDir: string;
165
+ /** CSS assets emitted by the bundler. Non-CSS assets are ignored. */
166
+ cssAssets: GlobalVarCssAssetSource[];
167
+ /** Source files transformed or observed before bundling. */
168
+ sourceFiles?: GlobalVarCodeSource[];
169
+ /** Explicit app-owned custom-property names. */
170
+ tokens?: string[];
171
+ /** Optional app-owned prefix discovery. Empty string disables discovery. */
172
+ autoPrefix?: string;
173
+ /** Prefix for generated aliases. Defaults to `---g`. */
174
+ aliasPrefix?: string;
175
+ /** Additional reserved names or prefixes. Prefixes may end with `*`. */
176
+ reserved?: string[];
177
+ /** Optional global-var scan cache directory. */
178
+ cacheDir?: string;
179
+ }
180
+ /** Output from Phase H scanner/planner/diagnostics integration. */
181
+ interface GlobalVarAliasValidationResult {
182
+ /** CSS scan results. */
183
+ scans: CssVarScanResult[];
184
+ /** Deterministic alias plan. */
185
+ plan: GlobalVarAliasPlan;
186
+ /** JS/JSX out-of-band usage diagnostics for planned candidates. */
187
+ usageDiagnostics: GlobalVarUsageDiagnostic[];
188
+ }
189
+ /** Options for rewriting CSS with a validated global variable alias plan. */
190
+ interface RewriteGlobalVarCssAliasesOptions {
191
+ /** CSS source text. */
192
+ css: string;
193
+ /** Validated alias plan. Diagnostics keep the rewrite as a no-op. */
194
+ plan: GlobalVarAliasPlan;
195
+ /** Source file path used by PostCSS diagnostics/source maps. */
196
+ filePath?: string;
197
+ }
198
+ /** Result of a pure global variable CSS alias rewrite. */
199
+ interface GlobalVarCssAliasRewriteResult {
200
+ /** Rewritten CSS source. */
201
+ css: string;
202
+ /** Number of alias declarations inserted. */
203
+ aliasDeclarations: number;
204
+ /** Number of `var(--token)` references rewritten. */
205
+ rewrittenReferences: number;
206
+ /** Planner diagnostics that prevented rewriting, when any. */
207
+ diagnostics: GlobalVarAliasDiagnostic[];
208
+ }
209
+
210
+ /**
211
+ * Extracts Phase H global custom-property aliases for manifest/debug tooling.
212
+ *
213
+ * The legacy `varMangleMap` also carries dynamic s/c-tier CSS variables. This
214
+ * helper keeps manifest consumers from guessing tiers by exposing only aliases
215
+ * that use the active generated prefix.
216
+ *
217
+ * @param varMangleMap CSS variable mangle metadata.
218
+ * @param aliasPrefix Active generated alias prefix.
219
+ * @param validationResult Validated CSS alias plan to include CSS-only aliases.
220
+ * @returns Original global variable names mapped to their generated aliases.
221
+ */
222
+ declare function extractGlobalVarAliasesForManifest(varMangleMap: Record<string, CssVariableMangleValue>, aliasPrefix?: string, validationResult?: GlobalVarAliasValidationResult | null): Record<string, string>;
223
+ /**
224
+ * Serializes the standalone global-var map asset when g-tier aliases exist.
225
+ *
226
+ * @param varMangleMap CSS variable mangle metadata.
227
+ * @param aliasPrefix Active generated alias prefix.
228
+ * @param validationResult Validated CSS alias plan to include CSS-only aliases.
229
+ * @returns JSON asset contents, or null when there are no global aliases.
230
+ */
231
+ declare function createGlobalVarMapAssetSource(varMangleMap: Record<string, CssVariableMangleValue>, aliasPrefix?: string, validationResult?: GlobalVarAliasValidationResult | null): string | null;
232
+ /**
233
+ * Normalizes compiler global-var aliases for transform-cache identity.
234
+ *
235
+ * @param aliases Compiler option value.
236
+ * @returns Stable original-to-alias entries.
237
+ */
238
+ declare function normalizeGlobalVarAliasesForCache(aliases: TransformSourceCodeOptions['globalVarAliases']): Array<[string, string]>;
239
+ /**
240
+ * Mangles class strings in bundled code (JS/HTML assets) using the given mangle map.
241
+ *
242
+ * Exported for unit testing; the plugin calls this via the thin private wrapper that
243
+ * supplies state.mangleMap.
244
+ *
245
+ * Pass 1: Direct `className="..."` / `class="..."` static strings
246
+ * Pass 1.5: Template literal quasi (static) segments in `className:\`...\``
247
+ * Pass 2: `className:EXPR` patterns with ternary operators containing quoted strings
248
+ * Pass 3: Quoted string arguments to csszyx runtime helpers (_szMerge, _szIf, etc.)
249
+ *
250
+ * @param code bundled source code
251
+ * @param mangleMap class-name → mangled-token mapping
252
+ * @returns code with mangled class names
253
+ */
254
+ declare function mangleCodeClassesSync(code: string, mangleMap: Record<string, string>): string;
255
+ declare const unplugin: UnpluginInstance<PartialCsszyxConfig, boolean>;
256
+ /**
257
+ * Creates a Vite plugin array with both pre-transform and post-mangle plugins.
258
+ * @param options - csszyx configuration options
259
+ * @returns array of Vite plugins for pre-transform and post-mangle phases
260
+ */
261
+ declare const vitePlugin: (options?: PartialCsszyxConfig) => PluginOption[];
262
+ /**
263
+ * Creates a combined Webpack plugin that applies both pre-transform and post-mangle phases.
264
+ * @param options - csszyx configuration options
265
+ * @returns a Webpack plugin instance combining both phases
266
+ */
267
+ declare const webpackPlugin: (options?: PartialCsszyxConfig) => WebpackPluginInstance;
268
+ /**
269
+ * Creates a Rollup plugin array with both pre-transform and post-mangle plugins.
270
+ * @param options - csszyx configuration options
271
+ * @returns array of Rollup plugins for pre-transform and post-mangle phases
272
+ */
273
+ declare const rollupPlugin: (options?: PartialCsszyxConfig) => InputPluginOption[];
274
+ /**
275
+ * Creates an esbuild plugin that delegates setup to both pre-transform and post-mangle plugins.
276
+ * @param options - csszyx configuration options
277
+ * @returns an esbuild plugin combining both pre-transform and post-mangle phases
278
+ */
279
+ declare const esbuildPlugin: (options?: PartialCsszyxConfig) => Plugin;
280
+
281
+ export { createGlobalVarMapAssetSource as o, esbuildPlugin as p, extractGlobalVarAliasesForManifest as q, mangleCodeClassesSync as r, normalizeGlobalVarAliasesForCache as s, rollupPlugin as t, unplugin as u, vitePlugin as v, webpackPlugin as w };
282
+ export type { CssVarScanResult as C, GlobalVarScanCacheKeyInput as G, PlanGlobalVarAliasesInput as P, RewriteGlobalVarCssAliasesOptions as R, ScanGlobalVarCssOptions as S, ValidateGlobalVarAliasInputsOptions as V, GlobalVarAliasPlan as a, GlobalVarCssAliasRewriteResult as b, CreateGlobalVarAliasValidationOptionsInput as c, GlobalVarAliasValidationResult as d, CssVarDefinition as e, CssVarLocation as f, CssVarReference as g, GlobalVarAliasDiagnostic as h, GlobalVarAliasDiagnosticSeverity as i, GlobalVarAliasEntry as j, GlobalVarCodeSource as k, GlobalVarCssAssetSource as l, GlobalVarCssSource as m, GlobalVarScanCacheEntry as n };