@vistagenic/vista 0.2.16 → 0.3.2

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 (153) hide show
  1. package/bin/vista.js +184 -177
  2. package/dist/ai/agent.d.ts +37 -0
  3. package/dist/ai/agent.js +385 -0
  4. package/dist/ai/embeddings.d.ts +11 -0
  5. package/dist/ai/embeddings.js +71 -0
  6. package/dist/ai/index.d.ts +10 -0
  7. package/dist/ai/index.js +26 -0
  8. package/dist/ai/memory.d.ts +16 -0
  9. package/dist/ai/memory.js +39 -0
  10. package/dist/ai/observability.d.ts +21 -0
  11. package/dist/ai/observability.js +69 -0
  12. package/dist/ai/providers/anthropic.d.ts +2 -0
  13. package/dist/ai/providers/anthropic.js +190 -0
  14. package/dist/ai/providers/base.d.ts +7 -0
  15. package/dist/ai/providers/base.js +85 -0
  16. package/dist/ai/providers/gemini.d.ts +2 -0
  17. package/dist/ai/providers/gemini.js +194 -0
  18. package/dist/ai/providers/index.d.ts +5 -0
  19. package/dist/ai/providers/index.js +21 -0
  20. package/dist/ai/providers/mock.d.ts +8 -0
  21. package/dist/ai/providers/mock.js +77 -0
  22. package/dist/ai/providers/openai.d.ts +2 -0
  23. package/dist/ai/providers/openai.js +211 -0
  24. package/dist/ai/rag.d.ts +35 -0
  25. package/dist/ai/rag.js +110 -0
  26. package/dist/ai/react/index.d.ts +1 -0
  27. package/dist/ai/react/index.js +17 -0
  28. package/dist/ai/react/react-server.d.ts +1 -0
  29. package/dist/ai/react/react-server.js +17 -0
  30. package/dist/ai/react/use-agent.d.ts +23 -0
  31. package/dist/ai/react/use-agent.js +138 -0
  32. package/dist/ai/stream.d.ts +24 -0
  33. package/dist/ai/stream.js +109 -0
  34. package/dist/ai/tool.d.ts +11 -0
  35. package/dist/ai/tool.js +47 -0
  36. package/dist/ai/types.d.ts +117 -0
  37. package/dist/ai/types.js +5 -0
  38. package/dist/auth/core.d.ts +140 -0
  39. package/dist/auth/core.js +165 -0
  40. package/dist/auth/index.d.ts +20 -8
  41. package/dist/auth/index.js +369 -16
  42. package/dist/auth/react-server.d.ts +1 -0
  43. package/dist/auth/react-server.js +10 -0
  44. package/dist/auth/react.d.ts +18 -0
  45. package/dist/auth/react.js +71 -0
  46. package/dist/bin/build-rsc.js +602 -604
  47. package/dist/bin/build.js +389 -388
  48. package/dist/bin/deploy-output.d.ts +2 -7
  49. package/dist/bin/deploy-output.js +3 -76
  50. package/dist/bin/deploy.d.ts +7 -0
  51. package/dist/bin/deploy.js +102 -0
  52. package/dist/bin/dev-error-overlay-snippet.js +778 -552
  53. package/dist/bin/devtools-indicator-snippet.js +387 -387
  54. package/dist/bin/generate.js +510 -248
  55. package/dist/build/manifest.d.ts +169 -139
  56. package/dist/build/manifest.js +423 -367
  57. package/dist/build/rsc/client-manifest.d.ts +62 -52
  58. package/dist/build/rsc/client-manifest.js +295 -193
  59. package/dist/build/rsc/client-reference-plugin.d.ts +37 -37
  60. package/dist/build/rsc/client-reference-plugin.js +160 -160
  61. package/dist/build/rsc/native-scanner.d.ts +135 -123
  62. package/dist/build/rsc/native-scanner.js +203 -170
  63. package/dist/build/rsc/react-client-reference-manifest.d.ts +28 -22
  64. package/dist/build/rsc/react-client-reference-manifest.js +240 -219
  65. package/dist/build/rsc/rsc-renderer.d.ts +99 -99
  66. package/dist/build/rsc/rsc-renderer.js +263 -263
  67. package/dist/build/rsc/server-component-loader.d.ts +19 -19
  68. package/dist/build/rsc/server-component-loader.js +91 -91
  69. package/dist/build/rsc/server-manifest.d.ts +17 -0
  70. package/dist/build/rsc/server-manifest.js +20 -0
  71. package/dist/build/standalone.js +337 -334
  72. package/dist/build/webpack/plugins/vista-flight-plugin.js +5 -5
  73. package/dist/client/dynamic.react-server.d.ts +2 -0
  74. package/dist/client/dynamic.react-server.js +23 -0
  75. package/dist/client/link.react-server.d.ts +2 -0
  76. package/dist/client/link.react-server.js +11 -0
  77. package/dist/client/navigation.react-server.d.ts +1 -0
  78. package/dist/client/navigation.react-server.js +17 -0
  79. package/dist/client/router.react-server.d.ts +1 -0
  80. package/dist/client/router.react-server.js +17 -0
  81. package/dist/client/rsc-router.react-server.d.ts +1 -0
  82. package/dist/client/rsc-router.react-server.js +17 -0
  83. package/dist/client/script.react-server.d.ts +2 -0
  84. package/dist/client/script.react-server.js +23 -0
  85. package/dist/components/client-island.d.ts +34 -34
  86. package/dist/components/client-island.js +75 -75
  87. package/dist/config.d.ts +17 -0
  88. package/dist/config.js +60 -1
  89. package/dist/deploy/adapters/cloudflare.d.ts +2 -0
  90. package/dist/deploy/adapters/cloudflare.js +124 -0
  91. package/dist/deploy/adapters/docker.d.ts +2 -0
  92. package/dist/deploy/adapters/docker.js +112 -0
  93. package/dist/deploy/adapters/index.d.ts +15 -0
  94. package/dist/deploy/adapters/index.js +24 -0
  95. package/dist/deploy/adapters/netlify.d.ts +2 -0
  96. package/dist/deploy/adapters/netlify.js +115 -0
  97. package/dist/deploy/adapters/render.d.ts +2 -0
  98. package/dist/deploy/adapters/render.js +95 -0
  99. package/dist/deploy/adapters/vercel.d.ts +7 -0
  100. package/dist/deploy/adapters/vercel.js +164 -0
  101. package/dist/deploy/cli-runner.d.ts +8 -0
  102. package/dist/deploy/cli-runner.js +58 -0
  103. package/dist/deploy/detect.d.ts +6 -0
  104. package/dist/deploy/detect.js +77 -0
  105. package/dist/deploy/index.d.ts +24 -0
  106. package/dist/deploy/index.js +112 -0
  107. package/dist/deploy/preflight.d.ts +8 -0
  108. package/dist/deploy/preflight.js +80 -0
  109. package/dist/deploy/types.d.ts +48 -0
  110. package/dist/deploy/types.js +2 -0
  111. package/dist/deploy/utils.d.ts +18 -0
  112. package/dist/deploy/utils.js +70 -0
  113. package/dist/dev-error.d.ts +14 -0
  114. package/dist/dev-error.js +1763 -705
  115. package/dist/index.d.ts +23 -21
  116. package/dist/index.js +61 -57
  117. package/dist/server/cookie-parse.d.ts +4 -0
  118. package/dist/server/cookie-parse.js +14 -0
  119. package/dist/server/engine.js +7 -26
  120. package/dist/server/index.d.ts +109 -102
  121. package/dist/server/index.js +315 -286
  122. package/dist/server/middleware-runner.d.ts +125 -57
  123. package/dist/server/middleware-runner.js +615 -218
  124. package/dist/server/middleware-security.d.ts +36 -0
  125. package/dist/server/middleware-security.js +183 -0
  126. package/dist/server/module-compile-hook.js +695 -662
  127. package/dist/server/route-handler-registry.d.ts +65 -0
  128. package/dist/server/route-handler-registry.js +195 -0
  129. package/dist/server/route-patterns.d.ts +67 -0
  130. package/dist/server/route-patterns.js +186 -0
  131. package/dist/server/rsc-engine.js +75 -92
  132. package/dist/server/rsc-module-system.d.ts +33 -33
  133. package/dist/server/rsc-module-system.js +87 -87
  134. package/dist/server/rsc-upstream.js +892 -888
  135. package/dist/server/static-generator.js +10 -10
  136. package/dist/server/typed-api-runtime.d.ts +18 -0
  137. package/dist/server/typed-api-runtime.js +635 -507
  138. package/dist/server/vista-import-map.js +134 -123
  139. package/dist/stack/index.d.ts +34 -32
  140. package/dist/stack/index.js +49 -45
  141. package/dist/stack/server/caller.d.ts +13 -0
  142. package/dist/stack/server/caller.js +42 -0
  143. package/dist/stack/server/executor.d.ts +40 -36
  144. package/dist/stack/server/executor.js +222 -174
  145. package/dist/stack/server/index.d.ts +11 -10
  146. package/dist/stack/server/index.js +24 -23
  147. package/dist/stack/server/procedure.d.ts +20 -18
  148. package/dist/stack/server/procedure.js +66 -58
  149. package/dist/stack/server/types.d.ts +113 -100
  150. package/dist/theme/react-server.d.ts +10 -0
  151. package/dist/theme/react-server.js +16 -0
  152. package/package.json +28 -3
  153. package/LICENSE +0 -21
@@ -1,170 +1,203 @@
1
- "use strict";
2
- /**
3
- * Vista RSC Native Scanner
4
- *
5
- * Uses Rust-powered native bindings for blazing fast component scanning.
6
- * Falls back to TypeScript implementation if native module unavailable.
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.isNativeAvailable = isNativeAvailable;
13
- exports.scanAppNative = scanAppNative;
14
- exports.generateClientManifestNative = generateClientManifestNative;
15
- exports.generateServerManifestNative = generateServerManifestNative;
16
- exports.generateMountIdNative = generateMountIdNative;
17
- exports.resetMountCounterNative = resetMountCounterNative;
18
- exports.convertScanResult = convertScanResult;
19
- const path_1 = __importDefault(require("path"));
20
- let nativeModule = null;
21
- let nativeLoadError = null;
22
- /**
23
- * Try to load the native Rust module
24
- */
25
- function loadNativeModule() {
26
- if (nativeModule !== null)
27
- return nativeModule;
28
- if (nativeLoadError !== null)
29
- return null;
30
- // Try multiple paths since we might be running from src or dist
31
- const possiblePaths = [
32
- // From compiled dist/build/rsc/native-scanner.js
33
- path_1.default.resolve(__dirname, '../../../../../crates/vista-napi'),
34
- // From source src/build/rsc/native-scanner.ts
35
- path_1.default.resolve(__dirname, '../../../../crates/vista-napi'),
36
- // From workspace root
37
- path_1.default.resolve(process.cwd(), '../crates/vista-napi'),
38
- // Try @aspect-build/vista-napi as npm package
39
- '@aspect-build/vista-napi',
40
- ];
41
- const _debug = !!process.env.VISTA_DEBUG;
42
- for (const modulePath of possiblePaths) {
43
- try {
44
- // eslint-disable-next-line @typescript-eslint/no-require-imports
45
- nativeModule = require(modulePath);
46
- if (_debug)
47
- console.log('[Vista JS RSC] Using Rust-powered scanner');
48
- return nativeModule;
49
- }
50
- catch {
51
- // Continue trying other paths
52
- }
53
- }
54
- nativeLoadError = new Error('Native module not found');
55
- if (_debug)
56
- console.warn('Native module unavailable, using TypeScript fallback');
57
- return null;
58
- }
59
- /**
60
- * Check if native module is available
61
- */
62
- function isNativeAvailable() {
63
- return loadNativeModule() !== null;
64
- }
65
- /**
66
- * Scan app directory using Rust native code
67
- * Returns null if native module is not available
68
- */
69
- function scanAppNative(appDir) {
70
- const native = loadNativeModule();
71
- if (!native)
72
- return null;
73
- try {
74
- const startTime = performance.now();
75
- const result = native.rscScanApp(appDir);
76
- const scanTime = performance.now() - startTime;
77
- if (process.env.VISTA_DEBUG) {
78
- console.log(`🦀 Native scan completed in ${scanTime.toFixed(2)}ms (${result.totalFiles} files)`);
79
- }
80
- return result;
81
- }
82
- catch (e) {
83
- console.error('Native scan failed:', e);
84
- return null;
85
- }
86
- }
87
- /**
88
- * Generate client manifest using Rust native code
89
- */
90
- function generateClientManifestNative(appDir, buildId) {
91
- const native = loadNativeModule();
92
- if (!native)
93
- return null;
94
- try {
95
- return native.rscGenerateClientManifest(appDir, buildId);
96
- }
97
- catch (e) {
98
- console.error('Native client manifest generation failed:', e);
99
- return null;
100
- }
101
- }
102
- /**
103
- * Generate server manifest using Rust native code
104
- */
105
- function generateServerManifestNative(appDir, buildId) {
106
- const native = loadNativeModule();
107
- if (!native)
108
- return null;
109
- try {
110
- return native.rscGenerateServerManifest(appDir, buildId);
111
- }
112
- catch (e) {
113
- console.error('Native server manifest generation failed:', e);
114
- return null;
115
- }
116
- }
117
- /**
118
- * Generate unique mount ID for client component
119
- */
120
- function generateMountIdNative() {
121
- const native = loadNativeModule();
122
- if (!native)
123
- return null;
124
- return native.rscGenerateMountId();
125
- }
126
- /**
127
- * Reset mount ID counter (call at start of each request)
128
- */
129
- function resetMountCounterNative() {
130
- const native = loadNativeModule();
131
- if (!native)
132
- return false;
133
- native.rscResetMountCounter();
134
- return true;
135
- }
136
- /**
137
- * Convert NAPI scan result to internal format
138
- */
139
- function convertScanResult(result) {
140
- return {
141
- clientComponents: result.clientComponents.map((c) => ({
142
- absolutePath: c.absolutePath,
143
- relativePath: c.relativePath,
144
- isClient: c.isClient,
145
- directiveLine: c.directiveLine,
146
- componentType: c.componentType,
147
- exports: c.exports,
148
- clientHooksUsed: c.clientHooksUsed,
149
- hasMetadata: c.hasMetadata,
150
- hasGenerateMetadata: c.hasGenerateMetadata,
151
- })),
152
- serverComponents: result.serverComponents.map((c) => ({
153
- absolutePath: c.absolutePath,
154
- relativePath: c.relativePath,
155
- isClient: false,
156
- directiveLine: 0,
157
- componentType: c.componentType,
158
- exports: c.exports,
159
- clientHooksUsed: [],
160
- hasMetadata: c.hasMetadata,
161
- hasGenerateMetadata: c.hasGenerateMetadata,
162
- })),
163
- pages: result.pages,
164
- layouts: result.layouts,
165
- apiRoutes: result.apiRoutes,
166
- errors: result.errors,
167
- totalFiles: result.totalFiles,
168
- scanTimeMs: result.scanTimeMs,
169
- };
170
- }
1
+ "use strict";
2
+ /**
3
+ * Vista RSC Native Scanner
4
+ *
5
+ * Uses Rust-powered native bindings for blazing fast component scanning.
6
+ * Falls back to TypeScript implementation if native module unavailable.
7
+ */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.isNativeAvailable = isNativeAvailable;
13
+ exports.scanAppNative = scanAppNative;
14
+ exports.generateClientManifestNative = generateClientManifestNative;
15
+ exports.generateClientManifestForProjectNative = generateClientManifestForProjectNative;
16
+ exports.discoverProjectClientRootsNative = discoverProjectClientRootsNative;
17
+ exports.generateServerManifestNative = generateServerManifestNative;
18
+ exports.generateMountIdNative = generateMountIdNative;
19
+ exports.resetMountCounterNative = resetMountCounterNative;
20
+ exports.convertScanResult = convertScanResult;
21
+ const path_1 = __importDefault(require("path"));
22
+ let nativeModule = null;
23
+ let nativeLoadError = null;
24
+ /**
25
+ * Try to load the native Rust module
26
+ */
27
+ function loadNativeModule() {
28
+ if (nativeModule !== null)
29
+ return nativeModule;
30
+ if (nativeLoadError !== null)
31
+ return null;
32
+ // Try multiple paths since we might be running from src or dist
33
+ const possiblePaths = [
34
+ // From compiled dist/build/rsc/native-scanner.js
35
+ path_1.default.resolve(__dirname, '../../../../../crates/vista-napi'),
36
+ // From source src/build/rsc/native-scanner.ts
37
+ path_1.default.resolve(__dirname, '../../../../crates/vista-napi'),
38
+ // From workspace root
39
+ path_1.default.resolve(process.cwd(), '../crates/vista-napi'),
40
+ // Try @aspect-build/vista-napi as npm package
41
+ '@aspect-build/vista-napi',
42
+ ];
43
+ const _debug = !!process.env.VISTA_DEBUG;
44
+ for (const modulePath of possiblePaths) {
45
+ try {
46
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
47
+ nativeModule = require(modulePath);
48
+ if (_debug)
49
+ console.log('[Vista JS RSC] Using Rust-powered scanner');
50
+ return nativeModule;
51
+ }
52
+ catch {
53
+ // Continue trying other paths
54
+ }
55
+ }
56
+ nativeLoadError = new Error('Native module not found');
57
+ if (_debug)
58
+ console.warn('⚠ Native module unavailable, using TypeScript fallback');
59
+ return null;
60
+ }
61
+ /**
62
+ * Check if native module is available
63
+ */
64
+ function isNativeAvailable() {
65
+ return loadNativeModule() !== null;
66
+ }
67
+ /**
68
+ * Scan app directory using Rust native code
69
+ * Returns null if native module is not available
70
+ */
71
+ function scanAppNative(appDir) {
72
+ const native = loadNativeModule();
73
+ if (!native)
74
+ return null;
75
+ try {
76
+ const startTime = performance.now();
77
+ const result = native.rscScanApp(appDir);
78
+ const scanTime = performance.now() - startTime;
79
+ if (process.env.VISTA_DEBUG) {
80
+ console.log(`🦀 Native scan completed in ${scanTime.toFixed(2)}ms (${result.totalFiles} files)`);
81
+ }
82
+ return result;
83
+ }
84
+ catch (e) {
85
+ console.error('Native scan failed:', e);
86
+ return null;
87
+ }
88
+ }
89
+ /**
90
+ * Generate client manifest using Rust native code
91
+ */
92
+ function generateClientManifestNative(appDir, buildId) {
93
+ const native = loadNativeModule();
94
+ if (!native)
95
+ return null;
96
+ try {
97
+ return native.rscGenerateClientManifest(appDir, buildId);
98
+ }
99
+ catch (e) {
100
+ console.error('Native client manifest generation failed:', e);
101
+ return null;
102
+ }
103
+ }
104
+ /**
105
+ * Generate client manifest from an explicit project root plus `app/`
106
+ */
107
+ function generateClientManifestForProjectNative(cwd, appDir, buildId) {
108
+ const native = loadNativeModule();
109
+ if (!native || typeof native.rscGenerateClientManifestForProject !== 'function') {
110
+ return null;
111
+ }
112
+ try {
113
+ return native.rscGenerateClientManifestForProject(cwd, appDir, buildId);
114
+ }
115
+ catch (e) {
116
+ console.error('Native project client manifest generation failed:', e);
117
+ return null;
118
+ }
119
+ }
120
+ /**
121
+ * Discover project-level client scan roots using Rust native code
122
+ */
123
+ function discoverProjectClientRootsNative(cwd) {
124
+ const native = loadNativeModule();
125
+ if (!native?.rscDiscoverProjectClientRoots)
126
+ return null;
127
+ try {
128
+ return native.rscDiscoverProjectClientRoots(cwd);
129
+ }
130
+ catch (e) {
131
+ console.error('Native client-root discovery failed:', e);
132
+ return null;
133
+ }
134
+ }
135
+ /**
136
+ * Generate server manifest using Rust native code
137
+ */
138
+ function generateServerManifestNative(appDir, buildId) {
139
+ const native = loadNativeModule();
140
+ if (!native)
141
+ return null;
142
+ try {
143
+ return native.rscGenerateServerManifest(appDir, buildId);
144
+ }
145
+ catch (e) {
146
+ console.error('Native server manifest generation failed:', e);
147
+ return null;
148
+ }
149
+ }
150
+ /**
151
+ * Generate unique mount ID for client component
152
+ */
153
+ function generateMountIdNative() {
154
+ const native = loadNativeModule();
155
+ if (!native)
156
+ return null;
157
+ return native.rscGenerateMountId();
158
+ }
159
+ /**
160
+ * Reset mount ID counter (call at start of each request)
161
+ */
162
+ function resetMountCounterNative() {
163
+ const native = loadNativeModule();
164
+ if (!native)
165
+ return false;
166
+ native.rscResetMountCounter();
167
+ return true;
168
+ }
169
+ /**
170
+ * Convert NAPI scan result to internal format
171
+ */
172
+ function convertScanResult(result) {
173
+ return {
174
+ clientComponents: result.clientComponents.map((c) => ({
175
+ absolutePath: c.absolutePath,
176
+ relativePath: c.relativePath,
177
+ isClient: c.isClient,
178
+ directiveLine: c.directiveLine,
179
+ componentType: c.componentType,
180
+ exports: c.exports,
181
+ clientHooksUsed: c.clientHooksUsed,
182
+ hasMetadata: c.hasMetadata,
183
+ hasGenerateMetadata: c.hasGenerateMetadata,
184
+ })),
185
+ serverComponents: result.serverComponents.map((c) => ({
186
+ absolutePath: c.absolutePath,
187
+ relativePath: c.relativePath,
188
+ isClient: false,
189
+ directiveLine: 0,
190
+ componentType: c.componentType,
191
+ exports: c.exports,
192
+ clientHooksUsed: [],
193
+ hasMetadata: c.hasMetadata,
194
+ hasGenerateMetadata: c.hasGenerateMetadata,
195
+ })),
196
+ pages: result.pages,
197
+ layouts: result.layouts,
198
+ apiRoutes: result.apiRoutes,
199
+ errors: result.errors,
200
+ totalFiles: result.totalFiles,
201
+ scanTimeMs: result.scanTimeMs,
202
+ };
203
+ }
@@ -1,22 +1,28 @@
1
- export interface ReactClientReferenceManifestEntry {
2
- id: string | number;
3
- chunks: Array<string | number>;
4
- name: string;
5
- }
6
- export type ReactClientReferenceManifest = Record<string, ReactClientReferenceManifestEntry>;
7
- export interface ReactServerConsumerManifestEntry {
8
- specifier?: string;
9
- id?: string | number;
10
- chunks?: Array<string | number>;
11
- name?: string;
12
- }
13
- export interface ReactServerConsumerManifest {
14
- moduleLoading?: {
15
- prefix: string;
16
- crossOrigin: string | null;
17
- };
18
- moduleMap?: Record<string, Record<string, ReactServerConsumerManifestEntry>>;
19
- serverModuleMap?: Record<string, unknown>;
20
- }
21
- export declare function normalizeReactClientReferenceManifest(input: ReactClientReferenceManifest): ReactClientReferenceManifest;
22
- export declare function normalizeReactServerConsumerManifest(input: ReactServerConsumerManifest): ReactServerConsumerManifest;
1
+ export interface ReactClientReferenceManifestEntry {
2
+ id: string | number;
3
+ chunks: Array<string | number>;
4
+ name: string;
5
+ }
6
+ export type ReactClientReferenceManifest = Record<string, ReactClientReferenceManifestEntry>;
7
+ export interface ReactServerConsumerManifestEntry {
8
+ specifier?: string;
9
+ id?: string | number;
10
+ chunks?: Array<string | number>;
11
+ name?: string;
12
+ }
13
+ export interface ReactServerConsumerManifest {
14
+ moduleLoading?: {
15
+ prefix: string;
16
+ crossOrigin: string | null;
17
+ };
18
+ moduleMap?: Record<string, Record<string, ReactServerConsumerManifestEntry>>;
19
+ serverModuleMap?: Record<string, unknown>;
20
+ }
21
+ export declare function normalizeReactClientReferenceManifest(input: ReactClientReferenceManifest): ReactClientReferenceManifest;
22
+ export declare function normalizeReactServerConsumerManifest(input: ReactServerConsumerManifest): ReactServerConsumerManifest;
23
+ /**
24
+ * React looks up `file://...#ExportName` in the Flight manifest and throws a
25
+ * generic error when the key is missing. Wrap the manifest so the message names
26
+ * the file and the scan-directory requirement.
27
+ */
28
+ export declare function createGuardedReactClientManifest(manifest: ReactClientReferenceManifest): ReactClientReferenceManifest;