@vistagenic/vista 0.3.2 → 0.3.4

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 (118) hide show
  1. package/bin/vista.js +79 -109
  2. package/dist/ai/embeddings.d.ts +11 -11
  3. package/dist/ai/embeddings.js +71 -71
  4. package/dist/ai/index.d.ts +10 -10
  5. package/dist/ai/index.js +26 -26
  6. package/dist/ai/providers/base.js +85 -85
  7. package/dist/ai/react/react-server.d.ts +1 -1
  8. package/dist/ai/react/react-server.js +17 -17
  9. package/dist/ai/react/use-agent.js +138 -138
  10. package/dist/auth/core.d.ts +140 -140
  11. package/dist/auth/core.js +165 -165
  12. package/dist/auth/index.d.ts +20 -20
  13. package/dist/auth/index.js +369 -369
  14. package/dist/auth/react-server.d.ts +1 -1
  15. package/dist/auth/react-server.js +10 -10
  16. package/dist/auth/react.d.ts +18 -18
  17. package/dist/auth/react.js +71 -71
  18. package/dist/bin/build-rsc-flashpack.js +6 -0
  19. package/dist/bin/build-rsc.js +555 -492
  20. package/dist/bin/build.js +365 -353
  21. package/dist/bin/generate.js +513 -510
  22. package/dist/bin/webpack.config.d.ts +3 -1
  23. package/dist/bin/webpack.config.js +7 -4
  24. package/dist/build/manifest.d.ts +169 -169
  25. package/dist/build/manifest.js +423 -423
  26. package/dist/build/rsc/client-manifest.d.ts +62 -62
  27. package/dist/build/rsc/client-manifest.js +295 -295
  28. package/dist/build/rsc/compiler.d.ts +3 -1
  29. package/dist/build/rsc/compiler.js +12 -7
  30. package/dist/build/rsc/native-scanner.d.ts +135 -135
  31. package/dist/build/rsc/native-scanner.js +203 -203
  32. package/dist/build/rsc/react-client-reference-manifest.d.ts +35 -28
  33. package/dist/build/rsc/react-client-reference-manifest.js +366 -240
  34. package/dist/build/standalone.js +260 -254
  35. package/dist/client/dynamic.react-server.d.ts +2 -2
  36. package/dist/client/dynamic.react-server.js +23 -23
  37. package/dist/client/link.js +1 -1
  38. package/dist/client/link.react-server.d.ts +2 -2
  39. package/dist/client/link.react-server.js +11 -11
  40. package/dist/client/navigation.js +2 -2
  41. package/dist/client/navigation.react-server.d.ts +1 -1
  42. package/dist/client/navigation.react-server.js +17 -17
  43. package/dist/client/router.react-server.d.ts +1 -1
  44. package/dist/client/router.react-server.js +17 -17
  45. package/dist/client/rsc-router.d.ts +1 -3
  46. package/dist/client/rsc-router.js +98 -45
  47. package/dist/client/rsc-router.react-server.d.ts +1 -1
  48. package/dist/client/rsc-router.react-server.js +17 -17
  49. package/dist/client/script.react-server.d.ts +2 -2
  50. package/dist/client/script.react-server.js +23 -23
  51. package/dist/config.d.ts +1 -1
  52. package/dist/config.js +1 -7
  53. package/dist/deploy/adapters/cloudflare.js +42 -41
  54. package/dist/deploy/adapters/docker.d.ts +1 -0
  55. package/dist/deploy/adapters/docker.js +5 -4
  56. package/dist/deploy/adapters/netlify.js +60 -27
  57. package/dist/deploy/adapters/vercel.js +80 -50
  58. package/dist/deploy/preflight.js +4 -3
  59. package/dist/deploy/runtime-pack.d.ts +11 -0
  60. package/dist/deploy/runtime-pack.js +300 -0
  61. package/dist/deploy/utils.d.ts +7 -1
  62. package/dist/deploy/utils.js +95 -3
  63. package/dist/flashpack/command.js +1 -0
  64. package/dist/flashpack/runtime.js +2 -1
  65. package/dist/image/get-img-props.js +21 -11
  66. package/dist/image/image-config.d.ts +2 -0
  67. package/dist/image/image-config.js +17 -0
  68. package/dist/image/index.d.ts +18 -3
  69. package/dist/image/index.js +1 -1
  70. package/dist/image/react-server.d.ts +1 -2
  71. package/dist/image/react-server.js +1 -1
  72. package/dist/index.d.ts +23 -23
  73. package/dist/index.js +61 -61
  74. package/dist/server/app-dir.d.ts +22 -0
  75. package/dist/server/app-dir.js +77 -0
  76. package/dist/server/app-router-runtime.d.ts +1 -0
  77. package/dist/server/app-router-runtime.js +34 -9
  78. package/dist/server/cookie-parse.d.ts +4 -4
  79. package/dist/server/cookie-parse.js +14 -14
  80. package/dist/server/engine.js +5 -5
  81. package/dist/server/hydration-chunks.d.ts +7 -0
  82. package/dist/server/hydration-chunks.js +49 -0
  83. package/dist/server/image-optimizer.js +2 -1
  84. package/dist/server/index.d.ts +109 -109
  85. package/dist/server/index.js +315 -315
  86. package/dist/server/middleware-runner.d.ts +125 -125
  87. package/dist/server/middleware-runner.js +607 -615
  88. package/dist/server/middleware-security.d.ts +36 -36
  89. package/dist/server/middleware-security.js +183 -183
  90. package/dist/server/module-compile-hook.js +706 -695
  91. package/dist/server/root-resolver.js +6 -5
  92. package/dist/server/rsc-engine-flashpack.d.ts +3 -1
  93. package/dist/server/rsc-engine-flashpack.js +12 -1
  94. package/dist/server/rsc-engine.d.ts +6 -1
  95. package/dist/server/rsc-engine.js +217 -280
  96. package/dist/server/rsc-upstream.js +900 -892
  97. package/dist/server/ssr-webpack-shim.d.ts +6 -0
  98. package/dist/server/ssr-webpack-shim.js +29 -0
  99. package/dist/server/static-generator.d.ts +2 -0
  100. package/dist/server/static-generator.js +33 -32
  101. package/dist/server/structure-validator.js +2 -1
  102. package/dist/server/structure-watch.js +2 -0
  103. package/dist/server/typed-api-runtime.js +639 -635
  104. package/dist/server/vista-import-map.js +134 -134
  105. package/dist/stack/index.d.ts +34 -34
  106. package/dist/stack/index.js +49 -49
  107. package/dist/stack/server/caller.d.ts +13 -13
  108. package/dist/stack/server/caller.js +42 -42
  109. package/dist/stack/server/executor.d.ts +40 -40
  110. package/dist/stack/server/executor.js +222 -222
  111. package/dist/stack/server/index.d.ts +11 -11
  112. package/dist/stack/server/index.js +24 -24
  113. package/dist/stack/server/procedure.d.ts +20 -20
  114. package/dist/stack/server/procedure.js +66 -66
  115. package/dist/stack/server/types.d.ts +113 -113
  116. package/dist/theme/react-server.d.ts +10 -10
  117. package/dist/theme/react-server.js +16 -16
  118. package/package.json +1 -1
@@ -1,203 +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.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
+ "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,28 +1,35 @@
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;
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
+ /**
22
+ * Flight encode looks up `file://...#ExportName`. Webpack may have keyed the
23
+ * same module under a standalone copy, a different drive-letter case, or a
24
+ * slightly different absolute prefix. Resolve those aliases at lookup time so
25
+ * missing keys do not serialize as Flight `E{"digest":""}` rows.
26
+ */
27
+ export declare function resolveReactClientManifestEntry(manifest: ReactClientReferenceManifest, key: string): ReactClientReferenceManifestEntry | undefined;
28
+ export declare function normalizeReactClientReferenceManifest(input: ReactClientReferenceManifest): ReactClientReferenceManifest;
29
+ export declare function normalizeReactServerConsumerManifest(input: ReactServerConsumerManifest): ReactServerConsumerManifest;
30
+ /**
31
+ * React looks up `file://...#ExportName` in the Flight manifest and throws a
32
+ * generic error when the key is missing. Wrap the manifest so the message names
33
+ * the file and the scan-directory requirement.
34
+ */
35
+ export declare function createGuardedReactClientManifest(manifest: ReactClientReferenceManifest): ReactClientReferenceManifest;