@plasmicapp/loader-react 1.0.38 → 1.0.39-6.beta

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.
@@ -0,0 +1,501 @@
1
+ /// <reference types="react" />
2
+
3
+ import { AssetModule } from '@plasmicapp/loader-core';
4
+ import type { CodeComponentMeta as CodeComponentMeta_2 } from '@plasmicapp/host';
5
+ import { CodeModule } from '@plasmicapp/loader-fetcher';
6
+ import type { ComponentHelpers } from '@plasmicapp/host';
7
+ import { ComponentMeta } from '@plasmicapp/loader-core';
8
+ import { ComponentMeta as ComponentMeta_2 } from '@plasmicapp/loader-fetcher';
9
+ import type { CustomFunctionMeta as CustomFunctionMeta_2 } from '@plasmicapp/host';
10
+ import { FontMeta } from '@plasmicapp/loader-core';
11
+ import { getActiveVariation } from '@plasmicapp/loader-splits';
12
+ import { getExternalIds } from '@plasmicapp/loader-splits';
13
+ import type { GlobalContextMeta as GlobalContextMeta_2 } from '@plasmicapp/host';
14
+ import { GlobalGroupMeta } from '@plasmicapp/loader-core';
15
+ import { LoaderBundleCache } from '@plasmicapp/loader-core';
16
+ import { LoaderBundleOutput } from '@plasmicapp/loader-fetcher';
17
+ import { LoaderBundleOutput as LoaderBundleOutput_2 } from '@plasmicapp/loader-core';
18
+ import { PageMeta } from '@plasmicapp/loader-core';
19
+ import { PageMetadata } from '@plasmicapp/loader-core';
20
+ import { plasmicappDataSourcesContext } from '@plasmicapp/data-sources-context';
21
+ import { plasmicappHost } from '@plasmicapp/host';
22
+ import { plasmicappQuery } from '@plasmicapp/query';
23
+ import { PlasmicModulesFetcher } from '@plasmicapp/loader-core';
24
+ import { PlasmicTracker } from '@plasmicapp/loader-core';
25
+ import { react } from 'react';
26
+ import * as React_2 from 'react';
27
+ import { default as React_3 } from 'react';
28
+ import { reactDom } from 'react-dom';
29
+ import { reactJsxDevRuntime } from 'react/jsx-dev-runtime';
30
+ import { reactJsxRuntime } from 'react/jsx-runtime';
31
+ import { Registry } from '@plasmicapp/loader-core';
32
+ import { Split } from '@plasmicapp/loader-fetcher';
33
+ import type { StateHelpers } from '@plasmicapp/host';
34
+ import type { StateSpec } from '@plasmicapp/host';
35
+ import type { TokenRegistration } from '@plasmicapp/host';
36
+ import { TrackRenderOptions } from '@plasmicapp/loader-core';
37
+ import type { TraitMeta } from '@plasmicapp/host';
38
+ import type { useDataEnv } from '@plasmicapp/host';
39
+ import type { useMutablePlasmicQueryData } from '@plasmicapp/query';
40
+ import type { useSelector } from '@plasmicapp/host';
41
+ import type { useSelectors } from '@plasmicapp/host';
42
+
43
+ /**
44
+ * Performs a prepass over Plasmic content, kicking off the necessary
45
+ * data fetches, and populating the fetched data into a cache. This
46
+ * cache can be passed as prefetchedQueryData into PlasmicRootProvider.
47
+ *
48
+ * To limit rendering errors that can occur when you do this, we recommend
49
+ * that you pass in _only_ the PlasmicComponents that you are planning to use
50
+ * as the argument. For example:
51
+ *
52
+ * const cache = await extractPlasmicQueryData(
53
+ * <ClientPlasmicRootProvider prefetchedData={plasmicData}>
54
+ * <PlasmicComponent component="Home" componentProps={{
55
+ * // Specify the component prop overrides you are planning to use
56
+ * // to render the page, as they may change what data is fetched.
57
+ * ...
58
+ * }} />
59
+ * <PlasmicComponent component="NavBar" componentProps={{
60
+ * ...
61
+ * }} />
62
+ * ...
63
+ * </ClientPlasmicRootProvider>,
64
+ * PLASMIC
65
+ * );
66
+ *
67
+ * If your PlasmicComponent will be wrapping components that require special
68
+ * context set up, you should also wrap the element above with those context
69
+ * providers. Avoid, however, wrapping the root provider, because we inspect
70
+ * the props passed to the root element.
71
+ *
72
+ * You should avoid passing in elements that are not related to Plasmic, as any
73
+ * rendering errors from those elements during the prepass may result in data
74
+ * not being populated in the cache.
75
+ *
76
+ * @param element a React element containing instances of PlasmicComponent.
77
+ * Will attempt to satisfy all data needs from usePlasmicDataQuery()
78
+ * in this element tree.
79
+ * @returns an object mapping query key to fetched data
80
+ */
81
+ export declare function __EXPERMIENTAL__extractPlasmicQueryData(element: React.ReactElement, loader: PlasmicComponentLoader): Promise<Record<string, any>>;
82
+
83
+ /** Subset of loader functionality that works on Client and React Server Components. */
84
+ declare abstract class BaseInternalPlasmicComponentLoader {
85
+ readonly opts: InitOptions;
86
+ private readonly registry;
87
+ private readonly tracker;
88
+ private readonly fetcher;
89
+ private readonly onBundleMerged?;
90
+ private readonly onBundleFetched?;
91
+ private globalVariants;
92
+ private subs;
93
+ private bundle;
94
+ constructor(args: {
95
+ opts: InitOptions;
96
+ fetcher: PlasmicModulesFetcher;
97
+ tracker: PlasmicTracker;
98
+ /** Called after `mergeBundle` (including `fetch` calls). */
99
+ onBundleMerged?: () => void;
100
+ /** Called after any `fetch` calls. */
101
+ onBundleFetched?: () => void;
102
+ builtinModules: BuiltinRegisteredModules;
103
+ });
104
+ private maybeGetCompMetas;
105
+ maybeFetchComponentData(specs: ComponentLookupSpec[], opts?: FetchComponentDataOpts): Promise<ComponentRenderData | null>;
106
+ maybeFetchComponentData(...specs: ComponentLookupSpec[]): Promise<ComponentRenderData | null>;
107
+ fetchComponentData(specs: ComponentLookupSpec[], opts?: FetchComponentDataOpts): Promise<ComponentRenderData>;
108
+ fetchComponentData(...specs: ComponentLookupSpec[]): Promise<ComponentRenderData>;
109
+ fetchPages(opts?: FetchPagesOpts): Promise<PageMeta[]>;
110
+ fetchComponents(): Promise<ComponentMeta_2[]>;
111
+ getActiveSplits(): Split[];
112
+ getChunksUrl(bundle: LoaderBundleOutput, modules: CodeModule[]): string;
113
+ private fetchMissingData;
114
+ private maybeReportClientSideFetch;
115
+ private fetchAllData;
116
+ mergeBundle(newBundle: LoaderBundleOutput): void;
117
+ getBundle(): LoaderBundleOutput;
118
+ clearCache(): void;
119
+ registerModules(modules: Record<string, any>): void;
120
+ substituteComponent<P>(component: React.ComponentType<P>, name: ComponentLookupSpec): void;
121
+ protected internalSubstituteComponent<P>(component: React.ComponentType<P>, name: ComponentLookupSpec, codeComponentHelpers: ComponentHelpers<React.ComponentProps<React.ComponentType<P>>> | undefined): void;
122
+ abstract registerComponent<T extends React.ComponentType<any>>(component: T, meta: CodeComponentMeta<React.ComponentProps<T>>): void;
123
+ abstract registerFunction<F extends (...args: any[]) => any>(fn: F, meta: CustomFunctionMeta<F>): void;
124
+ abstract registerGlobalContext<T extends React.ComponentType<any>>(context: T, meta: GlobalContextMeta<React.ComponentProps<T>>): void;
125
+ abstract registerTrait(trait: string, meta: TraitMeta): void;
126
+ abstract registerToken(token: TokenRegistration): void;
127
+ protected refreshRegistry(): void;
128
+ isRegistryEmpty(): boolean;
129
+ clearRegistry(): void;
130
+ setGlobalVariants(globalVariants: GlobalVariantSpec[]): void;
131
+ getGlobalVariants(): GlobalVariantSpec[];
132
+ registerPrefetchedBundle(bundle: LoaderBundleOutput): void;
133
+ getLookup(): ComponentLookup;
134
+ trackConversion(value?: number): void;
135
+ getActiveVariation(opts: Omit<Parameters<typeof getActiveVariation>[0], "splits">): Promise<Record<string, string>>;
136
+ getTeamIds(): string[];
137
+ getProjectIds(): string[];
138
+ trackRender(opts?: TrackRenderOptions): void;
139
+ loadServerQueriesModule(fileName: string): any;
140
+ }
141
+
142
+ declare interface BuiltinRegisteredModules {
143
+ react: react;
144
+ "react-dom": reactDom;
145
+ "react/jsx-runtime": reactJsxRuntime;
146
+ "react/jsx-dev-runtime": reactJsxDevRuntime;
147
+ "@plasmicapp/query": plasmicappQuery;
148
+ "@plasmicapp/data-sources-context": plasmicappDataSourcesContext;
149
+ "@plasmicapp/host": plasmicappHost;
150
+ "@plasmicapp/loader-runtime-registry": {
151
+ components: Record<string, React.ComponentType<any>>;
152
+ globalVariantHooks: Record<string, () => any>;
153
+ codeComponentHelpers: Record<string, ComponentHelpers<any>>;
154
+ functions: Record<string, (...args: any[]) => any>;
155
+ };
156
+ }
157
+
158
+ declare type CodeComponentMeta<P> = Omit<CodeComponentMeta_2<P>, "importPath" | "componentHelpers" | "states"> & {
159
+ /**
160
+ * The path to be used when importing the component in the generated code.
161
+ * It can be the name of the package that contains the component, or the path
162
+ * to the file in the project (relative to the root directory).
163
+ * Optional: not used by Plasmic headless API, only by codegen.
164
+ */
165
+ importPath?: string;
166
+ /**
167
+ * The states helpers are registered together with the states for the Plasmic headless API
168
+ */
169
+ states?: Record<string, StateSpec<P> & StateHelpers<P, any>>;
170
+ /**
171
+ * Helper function to enable data extraction when running Plasmic from
172
+ * Next.js App Router.
173
+ */
174
+ getServerInfo?: (props: P, ops: ReactServerOps) => ServerInfo;
175
+ };
176
+
177
+ declare class ComponentLookup {
178
+ private bundle;
179
+ private registry;
180
+ constructor(bundle: LoaderBundleOutput_2, registry: Registry);
181
+ getComponentMeta(spec: ComponentLookupSpec): ComponentMeta | undefined;
182
+ getComponent<P extends React_2.ComponentType = any>(spec: ComponentLookupSpec, opts?: {
183
+ forceOriginal?: boolean;
184
+ }): any;
185
+ hasComponent(spec: ComponentLookupSpec): boolean;
186
+ getGlobalContexts(): {
187
+ meta: GlobalGroupMeta;
188
+ context: any;
189
+ }[];
190
+ /** Returns StyleTokensProvider if the project has style token overrides. */
191
+ maybeGetStyleTokensProvider(spec: ComponentLookupSpec): any;
192
+ getGlobalContextsProvider(spec: ComponentLookupSpec): any;
193
+ getRootProvider(): any;
194
+ getCss(): AssetModule[];
195
+ getRemoteFonts(): FontMeta[];
196
+ }
197
+
198
+ declare type ComponentLookupSpec = string | {
199
+ name: string;
200
+ projectId?: string;
201
+ isCode?: boolean;
202
+ };
203
+
204
+ export { ComponentMeta }
205
+
206
+ export declare interface ComponentRenderData {
207
+ entryCompMetas: (ComponentMeta_2 & {
208
+ params?: Record<string, string>;
209
+ })[];
210
+ bundle: LoaderBundleOutput;
211
+ remoteFontUrls: string[];
212
+ }
213
+
214
+ export declare const convertBundlesToComponentRenderData: (bundles: LoaderBundleOutput_2[], compMetas: ComponentMeta[]) => ComponentRenderData | null;
215
+
216
+ declare type CustomFunctionMeta<F extends (...args: any[]) => any> = Omit<CustomFunctionMeta_2<F>, "importPath"> & {
217
+ /**
218
+ * The path to be used when importing the function in the generated code.
219
+ * It can be the name of the package that contains the function, or the path
220
+ * to the file in the project (relative to the root directory).
221
+ * Optional: not used by Plasmic headless API, only by codegen.
222
+ */
223
+ importPath?: string;
224
+ };
225
+
226
+ declare interface FetchComponentDataOpts {
227
+ /**
228
+ * Will fetch either code targeting SSR or browser hydration in the
229
+ * returned bundle.
230
+ *
231
+ * By default, the target is browser. That's okay, because even when
232
+ * doing SSR, as long as you are using the same instance of PlasmicLoader
233
+ * that was used to fetch component data, it will still know how to get at
234
+ * the server code.
235
+ *
236
+ * But, if you are building your own SSR solution, where fetching and rendering
237
+ * are using different instances of PlasmicLoader, then you'll want to make
238
+ * sure that when you fetch, you are fetching the right one to be used in the
239
+ * right environment for either SSR or browser hydration.
240
+ */
241
+ target?: "server" | "browser";
242
+ }
243
+
244
+ declare type FetchPagesOpts = {
245
+ /**
246
+ * Whether to include dynamic pages in fetchPages() output. A page is
247
+ * considered dynamic if its path contains some param between brackets,
248
+ * e.g. "[slug]".
249
+ */
250
+ includeDynamicPages?: boolean;
251
+ };
252
+
253
+ declare type GlobalContextMeta<P> = Omit<GlobalContextMeta_2<P>, "importPath"> & {
254
+ /**
255
+ * The path to be used when importing the component in the generated code.
256
+ * It can be the name of the package that contains the component, or the path
257
+ * to the file in the project (relative to the root directory).
258
+ * Optional: not used by Plasmic headless API, only by codegen.
259
+ */
260
+ importPath?: string;
261
+ };
262
+
263
+ declare interface GlobalVariantSpec {
264
+ name: string;
265
+ projectId?: string;
266
+ value: any;
267
+ }
268
+
269
+ export declare interface InitOptions {
270
+ projects: {
271
+ id: string;
272
+ token: string;
273
+ version?: string;
274
+ }[];
275
+ cache?: LoaderBundleCache;
276
+ platform?: "react" | "nextjs" | "gatsby";
277
+ platformOptions?: {
278
+ nextjs?: {
279
+ appDir: boolean;
280
+ };
281
+ };
282
+ preview?: boolean;
283
+ host?: string;
284
+ onClientSideFetch?: "warn" | "error";
285
+ i18n?: {
286
+ keyScheme: "content" | "hash" | "path";
287
+ tagPrefix?: string;
288
+ };
289
+ /**
290
+ * @deprecated use i18n.keyScheme instead
291
+ */
292
+ i18nKeyScheme?: "content" | "hash";
293
+ /**
294
+ * By default, fetchComponentData() and fetchPages() calls cached in memory
295
+ * with the PlasmicComponentLoader instance. If alwaysFresh is true, then
296
+ * data is always freshly fetched over the network.
297
+ */
298
+ alwaysFresh?: boolean;
299
+ /**
300
+ * If true, generated code from the server won't include page metadata tags
301
+ */
302
+ skipHead?: boolean;
303
+ /**
304
+ * If true, uses browser / node's native fetch
305
+ */
306
+ nativeFetch?: boolean;
307
+ /**
308
+ * If true, will not redirect to the codegen server automatically, and will
309
+ * try to reuse the existing bundle in the cache.
310
+ */
311
+ manualRedirect?: boolean;
312
+ }
313
+
314
+ export declare function initPlasmicLoader(opts: InitOptions): PlasmicComponentLoader;
315
+
316
+ export declare class InternalPlasmicComponentLoader extends BaseInternalPlasmicComponentLoader {
317
+ constructor(opts: InitOptions);
318
+ registerComponent<T extends React_3.ComponentType<any>>(component: T, meta: CodeComponentMeta<React_3.ComponentProps<T>>): void;
319
+ registerFunction<F extends (...args: any[]) => any>(fn: F, meta: CustomFunctionMeta<F>): void;
320
+ registerGlobalContext<T extends React_3.ComponentType<any>>(context: T, meta: GlobalContextMeta<React_3.ComponentProps<T>>): void;
321
+ registerTrait: (trait: string, meta: TraitMeta) => void;
322
+ registerToken: (token: TokenRegistration) => void;
323
+ refreshRegistry(): void;
324
+ }
325
+
326
+ /**
327
+ * Check if `lookup` resolves to `pagePath`. If it's a match, return an object
328
+ * containing path params; otherwise, return false.
329
+ *
330
+ * For example,
331
+ * - `matchesPagePath("/hello/[name]", "/hello/world")` -> `{params: {name:
332
+ * "world"}}`
333
+ * - `matchesPagePath("/hello/[name]", "/")` -> `false`
334
+ * - `matchesPagePath("/hello/[...catchall]", "/hello/a/b/c")` -> `{params: {catchall: ["a", "b", "c"]}}`
335
+ * - `matchesPagePath("/hello/[[...catchall]]", "/hello/")` -> `{params: {catchall: []}}`
336
+ * - `matchesPagePath("/", "")` -> `{params: {}}`
337
+ */
338
+ export declare function matchesPagePath(pattern: string, path: string): false | {
339
+ params: Record<string, string | string[]>;
340
+ };
341
+
342
+ export { PageMeta }
343
+
344
+ export { PageMetadata }
345
+
346
+ /**
347
+ * Library for fetching component data, and registering
348
+ * custom components.
349
+ */
350
+ export declare class PlasmicComponentLoader {
351
+ private __internal;
352
+ constructor(internal: BaseInternalPlasmicComponentLoader);
353
+ /**
354
+ * Sets global variants to be used for all components. Note that
355
+ * this is not reactive, and will not re-render all components
356
+ * already mounted; instead, it should be used to activate global
357
+ * variants that should always be activated for the lifetime of this
358
+ * app. If you'd like to reactively change the global variants,
359
+ * you should specify them via <PlasmicRootProvider />
360
+ */
361
+ setGlobalVariants(globalVariants: GlobalVariantSpec[]): void;
362
+ registerModules(modules: Record<string, any>): void;
363
+ /**
364
+ * Register custom components that should be swapped in for
365
+ * components defined in your project. You can use this to
366
+ * swap in / substitute a Plasmic component with a "real" component.
367
+ */
368
+ substituteComponent<P>(component: React.ComponentType<P>, name: ComponentLookupSpec): void;
369
+ /**
370
+ * Register code components to be used on Plasmic Editor.
371
+ */
372
+ registerComponent<T extends React.ComponentType<any>>(component: T, meta: CodeComponentMeta<React.ComponentProps<T>>): void;
373
+ /**
374
+ * [[deprecated]] Please use `substituteComponent` instead for component
375
+ * substitution, or the other `registerComponent` overload to register
376
+ * code components to be used on Plasmic Editor.
377
+ *
378
+ * @see `substituteComponent`
379
+ */
380
+ registerComponent<T extends React.ComponentType<any>>(component: T, name: ComponentLookupSpec): void;
381
+ private warnedRegisterComponent;
382
+ registerFunction<F extends (...args: any[]) => any>(fn: F, meta: CustomFunctionMeta<F>): void;
383
+ registerGlobalContext<T extends React.ComponentType<any>>(context: T, meta: GlobalContextMeta<React.ComponentProps<T>>): void;
384
+ registerTrait(trait: string, meta: TraitMeta): void;
385
+ registerToken(token: TokenRegistration): void;
386
+ /**
387
+ * Pre-fetches component data needed to for PlasmicLoader to render
388
+ * these components. Should be passed into PlasmicRootProvider as
389
+ * the prefetchedData prop.
390
+ *
391
+ * You can look up a component either by:
392
+ * - the name of the component
393
+ * - the path for a page component
394
+ * - an array of strings that make up parts of the path
395
+ * - object { name: "name_or_path", projectId: ...}, to specify which project
396
+ * to use, if multiple projects have the same component name
397
+ *
398
+ * Throws an Error if a specified component to fetch does not exist in
399
+ * the Plasmic project.
400
+ */
401
+ fetchComponentData(...specs: ComponentLookupSpec[]): Promise<ComponentRenderData>;
402
+ fetchComponentData(specs: ComponentLookupSpec[], opts?: FetchComponentDataOpts): Promise<ComponentRenderData>;
403
+ /**
404
+ * Like fetchComponentData(), but returns null instead of throwing an Error
405
+ * when a component is not found. Useful when you are implementing a catch-all
406
+ * page and want to check if a specific path had been defined for Plasmic.
407
+ */
408
+ maybeFetchComponentData(...specs: ComponentLookupSpec[]): Promise<ComponentRenderData | null>;
409
+ maybeFetchComponentData(specs: ComponentLookupSpec[], opts?: FetchComponentDataOpts): Promise<ComponentRenderData | null>;
410
+ /**
411
+ * Returns all the page component metadata for these projects.
412
+ */
413
+ fetchPages(opts?: FetchPagesOpts): Promise<PageMeta[]>;
414
+ /**
415
+ * Returns all components metadata for these projects.
416
+ */
417
+ fetchComponents(): Promise<ComponentMeta_2[]>;
418
+ protected _getActiveVariation(opts: Parameters<typeof PlasmicComponentLoader.__internal.getActiveVariation>[0]): Promise<Record<string, string>>;
419
+ getActiveVariation(opts: {
420
+ known?: Record<string, string>;
421
+ traits: Record<string, string | number | boolean>;
422
+ }): Promise<Record<string, string>>;
423
+ getChunksUrl(bundle: LoaderBundleOutput, modules: CodeModule[]): string;
424
+ getExternalVariation(variation: Record<string, string>, filters?: Parameters<typeof getExternalIds>[2]): Record<string, string>;
425
+ getActiveSplits(): Split[];
426
+ trackConversion(value?: number): void;
427
+ clearCache(): void;
428
+ unstable__getServerQueriesData(renderData: ComponentRenderData, $ctx: Record<string, any>): Promise<any>;
429
+ }
430
+
431
+ /**
432
+ * Helper functions to describe code component behaviors, in order to allow
433
+ * data extraction in RSC / Next.js App routing.
434
+ */
435
+ declare interface ReactServerOps {
436
+ readDataEnv: typeof useDataEnv;
437
+ readDataSelector: typeof useSelector;
438
+ readDataSelectors: typeof useSelectors;
439
+ /**
440
+ * The contexts are passed using a key instead of the context provider
441
+ * Notice it cannot access the default context value if none has been provided,
442
+ * since React server components cannot create contexts.
443
+ */
444
+ readContext: (contextKey: string) => any;
445
+ /**
446
+ * Allows data fetching from the code component and caching the result,
447
+ * which will be stored in the `queryCache` returned by
448
+ * `extractPlasmicQueryData`.
449
+ */
450
+ fetchData: typeof useMutablePlasmicQueryData;
451
+ }
452
+
453
+ /**
454
+ * Each child of a code component might receive separate `DataProvider` and
455
+ * Context values.
456
+ */
457
+ declare interface ServerChildData {
458
+ providedData?: ServerProvidedData | ServerProvidedData[];
459
+ providedContexts?: ServerProvidedContext | ServerProvidedContext[];
460
+ node: React.ReactNode;
461
+ }
462
+
463
+ declare interface ServerInfo {
464
+ /**
465
+ * Optional: Indicates the React Nodes created by the component and the
466
+ * respective contexts provided to them. If not specified, it will render the
467
+ * children passed to the component as props.
468
+ */
469
+ children?: ServerChildData | ServerChildData[];
470
+ providedData?: ServerProvidedData | ServerProvidedData[];
471
+ providedContexts?: ServerProvidedContext | ServerProvidedContext[];
472
+ }
473
+
474
+ /**
475
+ * Provides a new value for a given context key, similar to Context.Provider.
476
+ * The context itself is not available (RSC doesn't allow calling
477
+ * `createContext`) so each context will need to be represented as a unique
478
+ * "context key". Also it means the default context value is not available
479
+ * in case no value is passed (and reading that context will return `undefined`)
480
+ */
481
+ declare interface ServerProvidedContext {
482
+ /**
483
+ * Identifier to the context, required to read it later via
484
+ * `ReactServerOps.readContext()`.
485
+ */
486
+ contextKey: string;
487
+ /**
488
+ * Context value being provided (similar to `Context.Provider`).
489
+ */
490
+ value: any;
491
+ }
492
+
493
+ /**
494
+ * Represents data provided by a code component via `DataProvider`
495
+ */
496
+ declare interface ServerProvidedData {
497
+ name: string;
498
+ data: any;
499
+ }
500
+
501
+ export { }