@kubb/react-fabric 0.0.0-canary-20251020201500

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 (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/dist/devtools.cjs +10817 -0
  4. package/dist/devtools.cjs.map +1 -0
  5. package/dist/devtools.d.cts +1 -0
  6. package/dist/devtools.d.ts +1 -0
  7. package/dist/devtools.js +10817 -0
  8. package/dist/devtools.js.map +1 -0
  9. package/dist/globals-8sJ940pg.cjs +0 -0
  10. package/dist/globals-C6rGETh5.d.ts +166 -0
  11. package/dist/globals-CnATk-Sl.d.cts +166 -0
  12. package/dist/globals-Df5klKjG.js +1 -0
  13. package/dist/globals.cjs +1 -0
  14. package/dist/globals.d.cts +2 -0
  15. package/dist/globals.d.ts +2 -0
  16. package/dist/globals.js +3 -0
  17. package/dist/index.cjs +15924 -0
  18. package/dist/index.cjs.map +1 -0
  19. package/dist/index.d.cts +331 -0
  20. package/dist/index.d.ts +331 -0
  21. package/dist/index.js +15899 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/jsx-dev-runtime.cjs +9 -0
  24. package/dist/jsx-dev-runtime.d.cts +13 -0
  25. package/dist/jsx-dev-runtime.d.ts +13 -0
  26. package/dist/jsx-dev-runtime.js +6 -0
  27. package/dist/jsx-runtime-B3MMb3PL.cjs +233 -0
  28. package/dist/jsx-runtime-B3MMb3PL.cjs.map +1 -0
  29. package/dist/jsx-runtime-BPQkRAg2.js +228 -0
  30. package/dist/jsx-runtime-BPQkRAg2.js.map +1 -0
  31. package/dist/jsx-runtime-DmD5u6a-.js +13 -0
  32. package/dist/jsx-runtime-DmD5u6a-.js.map +1 -0
  33. package/dist/jsx-runtime-zKfRQHQD.cjs +36 -0
  34. package/dist/jsx-runtime-zKfRQHQD.cjs.map +1 -0
  35. package/dist/jsx-runtime.cjs +9 -0
  36. package/dist/jsx-runtime.js +6 -0
  37. package/dist/react-BBkwFtZV.js +1138 -0
  38. package/dist/react-BBkwFtZV.js.map +1 -0
  39. package/dist/react-Bq0UOw6S.cjs +1156 -0
  40. package/dist/react-Bq0UOw6S.cjs.map +1 -0
  41. package/dist/types-C3p0Ljxf.d.cts +85 -0
  42. package/dist/types-DEroxUW0.d.ts +85 -0
  43. package/dist/types.cjs +0 -0
  44. package/dist/types.d.cts +2 -0
  45. package/dist/types.d.ts +2 -0
  46. package/dist/types.js +1 -0
  47. package/package.json +115 -0
  48. package/src/ReactTemplate.tsx +229 -0
  49. package/src/components/App.tsx +27 -0
  50. package/src/components/Const.tsx +53 -0
  51. package/src/components/File.tsx +100 -0
  52. package/src/components/Function.tsx +139 -0
  53. package/src/components/Indent.tsx +53 -0
  54. package/src/components/Root.tsx +75 -0
  55. package/src/components/Type.tsx +40 -0
  56. package/src/createApp.ts +23 -0
  57. package/src/devtools.ts +118 -0
  58. package/src/dom.ts +75 -0
  59. package/src/globals.ts +52 -0
  60. package/src/hooks/useApp.ts +15 -0
  61. package/src/hooks/useFile.ts +14 -0
  62. package/src/hooks/useLifecycle.tsx +18 -0
  63. package/src/index.ts +24 -0
  64. package/src/jsx-runtime.ts +8 -0
  65. package/src/kubbRenderer.ts +175 -0
  66. package/src/types.ts +53 -0
  67. package/src/utils/createJSDoc.ts +9 -0
  68. package/src/utils/getFunctionParams.ts +236 -0
  69. package/src/utils/processFiles.ts +44 -0
  70. package/src/utils/squashExportNodes.ts +23 -0
  71. package/src/utils/squashImportNodes.ts +23 -0
  72. package/src/utils/squashSourceNodes.ts +40 -0
  73. package/src/utils/squashTextNodes.ts +82 -0
@@ -0,0 +1,331 @@
1
+ import { a as Import, c as Source, i as File$1, n as Export, o as Path, r as Extname, s as ResolvedFile, t as BaseName } from "./globals-CnATk-Sl.cjs";
2
+ import { a as JSDoc, f as createFunctionParams, l as FunctionParams, o as Key, s as KubbNode } from "./types-C3p0Ljxf.cjs";
3
+ import * as react1 from "react";
4
+ import React from "react";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+
7
+ //#region ../fabric-core/src/defineApp.d.ts
8
+ type Component = any;
9
+ type PluginInstallFunction<Options$1 = any[]> = Options$1 extends unknown[] ? (app: App$1, ...options: Options$1) => any : (app: App$1, options: Options$1) => any;
10
+ type ObjectPlugin<Options$1 = any[]> = {
11
+ install: PluginInstallFunction<Options$1>;
12
+ };
13
+ type FunctionPlugin<Options$1 = any[]> = PluginInstallFunction<Options$1> & Partial<ObjectPlugin<Options$1>>;
14
+ type Plugin<Options$1 = any[], P extends unknown[] = (Options$1 extends unknown[] ? Options$1 : [Options$1])> = FunctionPlugin<P> | ObjectPlugin<P>;
15
+ type WriteOptions = {
16
+ extension?: Record<Extname, Extname | ''>;
17
+ dryRun?: boolean;
18
+ };
19
+ interface App$1 {
20
+ _component: Component;
21
+ render(): Promise<void>;
22
+ renderToString(): Promise<string>;
23
+ getFiles(): Promise<Array<ResolvedFile>>;
24
+ use<Options>(plugin: Plugin<Options>, options: NoInfer<Options>): this;
25
+ write(options?: WriteOptions): Promise<void>;
26
+ addFile(...files: Array<File$1>): Promise<void>;
27
+ waitUntilExit(): Promise<void>;
28
+ }
29
+ type DefineApp = (rootComponent?: Component) => App$1;
30
+ //#endregion
31
+ //#region src/components/App.d.ts
32
+ type AppContextProps<TMeta = unknown> = {
33
+ /**
34
+ * Exit (unmount)
35
+ */
36
+ readonly exit: (error?: Error) => void;
37
+ readonly meta: TMeta;
38
+ };
39
+ type Props$4<TMeta = unknown> = {
40
+ readonly children?: KubbNode;
41
+ readonly meta: TMeta;
42
+ };
43
+ declare function App<TMeta = unknown>({
44
+ meta,
45
+ children
46
+ }: Props$4<TMeta>): react_jsx_runtime0.JSX.Element;
47
+ declare namespace App {
48
+ var Context: react1.Context<AppContextProps<unknown> | undefined>;
49
+ var displayName: string;
50
+ }
51
+ //#endregion
52
+ //#region src/components/Const.d.ts
53
+ type Props$3 = {
54
+ key?: Key;
55
+ /**
56
+ * Name of the const
57
+ */
58
+ name: string;
59
+ /**
60
+ * Does this type need to be exported.
61
+ */
62
+ export?: boolean;
63
+ /**
64
+ * Type to make the const being typed
65
+ */
66
+ type?: string;
67
+ /**
68
+ * Options for JSdocs.
69
+ */
70
+ JSDoc?: JSDoc;
71
+ /**
72
+ * Use of `const` assertions
73
+ */
74
+ asConst?: boolean;
75
+ children?: KubbNode;
76
+ };
77
+ declare function Const({
78
+ name,
79
+ export: canExport,
80
+ type,
81
+ JSDoc,
82
+ asConst,
83
+ children
84
+ }: Props$3): react_jsx_runtime0.JSX.Element;
85
+ declare namespace Const {
86
+ var displayName: string;
87
+ }
88
+ //#endregion
89
+ //#region src/components/File.d.ts
90
+ type FileContextProps<TMeta extends object = object> = {
91
+ /**
92
+ * Name to be used to dynamicly create the baseName(based on input.path).
93
+ * Based on UNIX basename
94
+ * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
95
+ */
96
+ baseName: BaseName;
97
+ /**
98
+ * Path will be full qualified path to a specified file.
99
+ */
100
+ path: Path;
101
+ meta?: TMeta;
102
+ };
103
+ type BasePropsWithBaseName = {
104
+ /**
105
+ * Name to be used to dynamicly create the baseName(based on input.path).
106
+ * Based on UNIX basename
107
+ * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
108
+ */
109
+ baseName: BaseName;
110
+ /**
111
+ * Path will be full qualified path to a specified file.
112
+ */
113
+ path: Path;
114
+ };
115
+ type BasePropsWithoutBaseName = {
116
+ baseName?: never;
117
+ /**
118
+ * Path will be full qualified path to a specified file.
119
+ */
120
+ path?: Path;
121
+ };
122
+ type BaseProps = BasePropsWithBaseName | BasePropsWithoutBaseName;
123
+ type Props$2<TMeta> = BaseProps & {
124
+ key?: Key;
125
+ meta?: TMeta;
126
+ banner?: string;
127
+ footer?: string;
128
+ children?: KubbNode;
129
+ };
130
+ declare function File<TMeta extends object = object>({
131
+ children,
132
+ ...rest
133
+ }: Props$2<TMeta>): react_jsx_runtime0.JSX.Element;
134
+ declare namespace File {
135
+ var displayName: string;
136
+ var Export: typeof FileExport;
137
+ var Import: typeof FileImport;
138
+ var Source: typeof FileSource;
139
+ var Context: react1.Context<FileContextProps<object>>;
140
+ }
141
+ type FileSourceProps = Omit<Source, 'value'> & {
142
+ key?: Key;
143
+ children?: KubbNode;
144
+ };
145
+ declare function FileSource({
146
+ isTypeOnly,
147
+ name,
148
+ isExportable,
149
+ isIndexable,
150
+ children
151
+ }: FileSourceProps): react_jsx_runtime0.JSX.Element;
152
+ declare namespace FileSource {
153
+ var displayName: string;
154
+ }
155
+ type FileExportProps = Export & {
156
+ key?: Key;
157
+ };
158
+ declare function FileExport({
159
+ name,
160
+ path,
161
+ isTypeOnly,
162
+ asAlias
163
+ }: FileExportProps): react_jsx_runtime0.JSX.Element;
164
+ declare namespace FileExport {
165
+ var displayName: string;
166
+ }
167
+ type FileImportProps = Import & {
168
+ key?: Key;
169
+ };
170
+ declare function FileImport({
171
+ name,
172
+ root,
173
+ path,
174
+ isTypeOnly,
175
+ isNameSpace
176
+ }: FileImportProps): react_jsx_runtime0.JSX.Element;
177
+ declare namespace FileImport {
178
+ var displayName: string;
179
+ }
180
+ //#endregion
181
+ //#region src/components/Function.d.ts
182
+ type Props$1 = {
183
+ key?: Key;
184
+ /**
185
+ * Name of the function.
186
+ */
187
+ name: string;
188
+ /**
189
+ * Add default when export is being used
190
+ */
191
+ default?: boolean;
192
+ /**
193
+ * Parameters/options/props that need to be used.
194
+ */
195
+ params?: string;
196
+ /**
197
+ * Does this function need to be exported.
198
+ */
199
+ export?: boolean;
200
+ /**
201
+ * Does the function has async/promise behaviour.
202
+ * This will also add `Promise<returnType>` as the returnType.
203
+ */
204
+ async?: boolean;
205
+ /**
206
+ * Generics that needs to be added for TypeScript.
207
+ */
208
+ generics?: string | string[];
209
+ /**
210
+ * ReturnType(see async for adding Promise type).
211
+ */
212
+ returnType?: string;
213
+ /**
214
+ * Options for JSdocs.
215
+ */
216
+ JSDoc?: JSDoc;
217
+ children?: KubbNode;
218
+ };
219
+ declare function Function({
220
+ name,
221
+ default: isDefault,
222
+ export: canExport,
223
+ async,
224
+ generics,
225
+ params,
226
+ returnType,
227
+ JSDoc,
228
+ children
229
+ }: Props$1): react_jsx_runtime0.JSX.Element;
230
+ declare namespace Function {
231
+ var displayName: string;
232
+ var Arrow: typeof ArrowFunction;
233
+ }
234
+ type ArrowFunctionProps = Props$1 & {
235
+ /**
236
+ * Create Arrow function in one line
237
+ */
238
+ singleLine?: boolean;
239
+ };
240
+ declare function ArrowFunction({
241
+ name,
242
+ default: isDefault,
243
+ export: canExport,
244
+ async,
245
+ generics,
246
+ params,
247
+ returnType,
248
+ JSDoc,
249
+ singleLine,
250
+ children
251
+ }: ArrowFunctionProps): react_jsx_runtime0.JSX.Element;
252
+ declare namespace ArrowFunction {
253
+ var displayName: string;
254
+ }
255
+ //#endregion
256
+ //#region src/components/Indent.d.ts
257
+ type IndentProps = {
258
+ size?: number;
259
+ children?: React.ReactNode;
260
+ };
261
+ /**
262
+ * Indents all children by `size` spaces.
263
+ * Collapses consecutive <br /> tags to at most 2.
264
+ */
265
+ declare function Indent({
266
+ size,
267
+ children
268
+ }: IndentProps): react_jsx_runtime0.JSX.Element | null;
269
+ //#endregion
270
+ //#region src/components/Type.d.ts
271
+ type Props = {
272
+ key?: Key;
273
+ /**
274
+ * Name of the type, this needs to start with a capital letter.
275
+ */
276
+ name: string;
277
+ /**
278
+ * Does this type need to be exported.
279
+ */
280
+ export?: boolean;
281
+ /**
282
+ * Options for JSdocs.
283
+ */
284
+ JSDoc?: JSDoc;
285
+ children?: KubbNode;
286
+ };
287
+ declare function Type({
288
+ name,
289
+ export: canExport,
290
+ JSDoc,
291
+ children
292
+ }: Props): react_jsx_runtime0.JSX.Element;
293
+ declare namespace Type {
294
+ var displayName: string;
295
+ }
296
+ //#endregion
297
+ //#region src/createApp.d.ts
298
+ declare const createApp: DefineApp;
299
+ //#endregion
300
+ //#region src/hooks/useApp.d.ts
301
+ /**
302
+ * `useApp` will return the current App with plugin, pluginManager, fileManager and mode.
303
+ */
304
+ declare function useApp<TMeta = unknown>(): AppContextProps<TMeta>;
305
+ //#endregion
306
+ //#region src/hooks/useFile.d.ts
307
+ /**
308
+ * `useFile` will return the current file when <File/> is used.
309
+ */
310
+ declare function useFile(): FileContextProps;
311
+ //#endregion
312
+ //#region src/hooks/useLifecycle.d.ts
313
+ /**
314
+ * `useLifecycle` will return some helpers to exit/restart the generation.
315
+ */
316
+ declare function useLifecycle(): {
317
+ exit: () => void;
318
+ };
319
+ //#endregion
320
+ //#region src/index.d.ts
321
+ declare const createContext: typeof react1.createContext;
322
+ declare const createElement: typeof react1.createElement;
323
+ declare const useContext: typeof react1.useContext;
324
+ declare const useEffect: typeof react1.useEffect;
325
+ declare const useState: typeof react1.useState;
326
+ declare const useRef: typeof react1.useRef;
327
+ declare const use: typeof react1.use;
328
+ declare const useReducer: typeof react1.useReducer;
329
+ //#endregion
330
+ export { App, Const, File, Function, FunctionParams, Indent, Type, createApp, createContext, createElement, createFunctionParams, use, useApp, useContext, useEffect, useFile, useLifecycle, useReducer, useRef, useState };
331
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1,331 @@
1
+ import { a as Import, c as Source, i as File$1, n as Export, o as Path, r as Extname, s as ResolvedFile, t as BaseName } from "./globals-C6rGETh5.js";
2
+ import { a as JSDoc, f as createFunctionParams, l as FunctionParams, o as Key, s as KubbNode } from "./types-DEroxUW0.js";
3
+ import * as react1 from "react";
4
+ import React from "react";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+
7
+ //#region ../fabric-core/src/defineApp.d.ts
8
+ type Component = any;
9
+ type PluginInstallFunction<Options$1 = any[]> = Options$1 extends unknown[] ? (app: App$1, ...options: Options$1) => any : (app: App$1, options: Options$1) => any;
10
+ type ObjectPlugin<Options$1 = any[]> = {
11
+ install: PluginInstallFunction<Options$1>;
12
+ };
13
+ type FunctionPlugin<Options$1 = any[]> = PluginInstallFunction<Options$1> & Partial<ObjectPlugin<Options$1>>;
14
+ type Plugin<Options$1 = any[], P extends unknown[] = (Options$1 extends unknown[] ? Options$1 : [Options$1])> = FunctionPlugin<P> | ObjectPlugin<P>;
15
+ type WriteOptions = {
16
+ extension?: Record<Extname, Extname | ''>;
17
+ dryRun?: boolean;
18
+ };
19
+ interface App$1 {
20
+ _component: Component;
21
+ render(): Promise<void>;
22
+ renderToString(): Promise<string>;
23
+ getFiles(): Promise<Array<ResolvedFile>>;
24
+ use<Options>(plugin: Plugin<Options>, options: NoInfer<Options>): this;
25
+ write(options?: WriteOptions): Promise<void>;
26
+ addFile(...files: Array<File$1>): Promise<void>;
27
+ waitUntilExit(): Promise<void>;
28
+ }
29
+ type DefineApp = (rootComponent?: Component) => App$1;
30
+ //#endregion
31
+ //#region src/components/App.d.ts
32
+ type AppContextProps<TMeta = unknown> = {
33
+ /**
34
+ * Exit (unmount)
35
+ */
36
+ readonly exit: (error?: Error) => void;
37
+ readonly meta: TMeta;
38
+ };
39
+ type Props$4<TMeta = unknown> = {
40
+ readonly children?: KubbNode;
41
+ readonly meta: TMeta;
42
+ };
43
+ declare function App<TMeta = unknown>({
44
+ meta,
45
+ children
46
+ }: Props$4<TMeta>): react_jsx_runtime0.JSX.Element;
47
+ declare namespace App {
48
+ var Context: react1.Context<AppContextProps<unknown> | undefined>;
49
+ var displayName: string;
50
+ }
51
+ //#endregion
52
+ //#region src/components/Const.d.ts
53
+ type Props$3 = {
54
+ key?: Key;
55
+ /**
56
+ * Name of the const
57
+ */
58
+ name: string;
59
+ /**
60
+ * Does this type need to be exported.
61
+ */
62
+ export?: boolean;
63
+ /**
64
+ * Type to make the const being typed
65
+ */
66
+ type?: string;
67
+ /**
68
+ * Options for JSdocs.
69
+ */
70
+ JSDoc?: JSDoc;
71
+ /**
72
+ * Use of `const` assertions
73
+ */
74
+ asConst?: boolean;
75
+ children?: KubbNode;
76
+ };
77
+ declare function Const({
78
+ name,
79
+ export: canExport,
80
+ type,
81
+ JSDoc,
82
+ asConst,
83
+ children
84
+ }: Props$3): react_jsx_runtime0.JSX.Element;
85
+ declare namespace Const {
86
+ var displayName: string;
87
+ }
88
+ //#endregion
89
+ //#region src/components/File.d.ts
90
+ type FileContextProps<TMeta extends object = object> = {
91
+ /**
92
+ * Name to be used to dynamicly create the baseName(based on input.path).
93
+ * Based on UNIX basename
94
+ * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
95
+ */
96
+ baseName: BaseName;
97
+ /**
98
+ * Path will be full qualified path to a specified file.
99
+ */
100
+ path: Path;
101
+ meta?: TMeta;
102
+ };
103
+ type BasePropsWithBaseName = {
104
+ /**
105
+ * Name to be used to dynamicly create the baseName(based on input.path).
106
+ * Based on UNIX basename
107
+ * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
108
+ */
109
+ baseName: BaseName;
110
+ /**
111
+ * Path will be full qualified path to a specified file.
112
+ */
113
+ path: Path;
114
+ };
115
+ type BasePropsWithoutBaseName = {
116
+ baseName?: never;
117
+ /**
118
+ * Path will be full qualified path to a specified file.
119
+ */
120
+ path?: Path;
121
+ };
122
+ type BaseProps = BasePropsWithBaseName | BasePropsWithoutBaseName;
123
+ type Props$2<TMeta> = BaseProps & {
124
+ key?: Key;
125
+ meta?: TMeta;
126
+ banner?: string;
127
+ footer?: string;
128
+ children?: KubbNode;
129
+ };
130
+ declare function File<TMeta extends object = object>({
131
+ children,
132
+ ...rest
133
+ }: Props$2<TMeta>): react_jsx_runtime0.JSX.Element;
134
+ declare namespace File {
135
+ var displayName: string;
136
+ var Export: typeof FileExport;
137
+ var Import: typeof FileImport;
138
+ var Source: typeof FileSource;
139
+ var Context: react1.Context<FileContextProps<object>>;
140
+ }
141
+ type FileSourceProps = Omit<Source, 'value'> & {
142
+ key?: Key;
143
+ children?: KubbNode;
144
+ };
145
+ declare function FileSource({
146
+ isTypeOnly,
147
+ name,
148
+ isExportable,
149
+ isIndexable,
150
+ children
151
+ }: FileSourceProps): react_jsx_runtime0.JSX.Element;
152
+ declare namespace FileSource {
153
+ var displayName: string;
154
+ }
155
+ type FileExportProps = Export & {
156
+ key?: Key;
157
+ };
158
+ declare function FileExport({
159
+ name,
160
+ path,
161
+ isTypeOnly,
162
+ asAlias
163
+ }: FileExportProps): react_jsx_runtime0.JSX.Element;
164
+ declare namespace FileExport {
165
+ var displayName: string;
166
+ }
167
+ type FileImportProps = Import & {
168
+ key?: Key;
169
+ };
170
+ declare function FileImport({
171
+ name,
172
+ root,
173
+ path,
174
+ isTypeOnly,
175
+ isNameSpace
176
+ }: FileImportProps): react_jsx_runtime0.JSX.Element;
177
+ declare namespace FileImport {
178
+ var displayName: string;
179
+ }
180
+ //#endregion
181
+ //#region src/components/Function.d.ts
182
+ type Props$1 = {
183
+ key?: Key;
184
+ /**
185
+ * Name of the function.
186
+ */
187
+ name: string;
188
+ /**
189
+ * Add default when export is being used
190
+ */
191
+ default?: boolean;
192
+ /**
193
+ * Parameters/options/props that need to be used.
194
+ */
195
+ params?: string;
196
+ /**
197
+ * Does this function need to be exported.
198
+ */
199
+ export?: boolean;
200
+ /**
201
+ * Does the function has async/promise behaviour.
202
+ * This will also add `Promise<returnType>` as the returnType.
203
+ */
204
+ async?: boolean;
205
+ /**
206
+ * Generics that needs to be added for TypeScript.
207
+ */
208
+ generics?: string | string[];
209
+ /**
210
+ * ReturnType(see async for adding Promise type).
211
+ */
212
+ returnType?: string;
213
+ /**
214
+ * Options for JSdocs.
215
+ */
216
+ JSDoc?: JSDoc;
217
+ children?: KubbNode;
218
+ };
219
+ declare function Function({
220
+ name,
221
+ default: isDefault,
222
+ export: canExport,
223
+ async,
224
+ generics,
225
+ params,
226
+ returnType,
227
+ JSDoc,
228
+ children
229
+ }: Props$1): react_jsx_runtime0.JSX.Element;
230
+ declare namespace Function {
231
+ var displayName: string;
232
+ var Arrow: typeof ArrowFunction;
233
+ }
234
+ type ArrowFunctionProps = Props$1 & {
235
+ /**
236
+ * Create Arrow function in one line
237
+ */
238
+ singleLine?: boolean;
239
+ };
240
+ declare function ArrowFunction({
241
+ name,
242
+ default: isDefault,
243
+ export: canExport,
244
+ async,
245
+ generics,
246
+ params,
247
+ returnType,
248
+ JSDoc,
249
+ singleLine,
250
+ children
251
+ }: ArrowFunctionProps): react_jsx_runtime0.JSX.Element;
252
+ declare namespace ArrowFunction {
253
+ var displayName: string;
254
+ }
255
+ //#endregion
256
+ //#region src/components/Indent.d.ts
257
+ type IndentProps = {
258
+ size?: number;
259
+ children?: React.ReactNode;
260
+ };
261
+ /**
262
+ * Indents all children by `size` spaces.
263
+ * Collapses consecutive <br /> tags to at most 2.
264
+ */
265
+ declare function Indent({
266
+ size,
267
+ children
268
+ }: IndentProps): react_jsx_runtime0.JSX.Element | null;
269
+ //#endregion
270
+ //#region src/components/Type.d.ts
271
+ type Props = {
272
+ key?: Key;
273
+ /**
274
+ * Name of the type, this needs to start with a capital letter.
275
+ */
276
+ name: string;
277
+ /**
278
+ * Does this type need to be exported.
279
+ */
280
+ export?: boolean;
281
+ /**
282
+ * Options for JSdocs.
283
+ */
284
+ JSDoc?: JSDoc;
285
+ children?: KubbNode;
286
+ };
287
+ declare function Type({
288
+ name,
289
+ export: canExport,
290
+ JSDoc,
291
+ children
292
+ }: Props): react_jsx_runtime0.JSX.Element;
293
+ declare namespace Type {
294
+ var displayName: string;
295
+ }
296
+ //#endregion
297
+ //#region src/createApp.d.ts
298
+ declare const createApp: DefineApp;
299
+ //#endregion
300
+ //#region src/hooks/useApp.d.ts
301
+ /**
302
+ * `useApp` will return the current App with plugin, pluginManager, fileManager and mode.
303
+ */
304
+ declare function useApp<TMeta = unknown>(): AppContextProps<TMeta>;
305
+ //#endregion
306
+ //#region src/hooks/useFile.d.ts
307
+ /**
308
+ * `useFile` will return the current file when <File/> is used.
309
+ */
310
+ declare function useFile(): FileContextProps;
311
+ //#endregion
312
+ //#region src/hooks/useLifecycle.d.ts
313
+ /**
314
+ * `useLifecycle` will return some helpers to exit/restart the generation.
315
+ */
316
+ declare function useLifecycle(): {
317
+ exit: () => void;
318
+ };
319
+ //#endregion
320
+ //#region src/index.d.ts
321
+ declare const createContext: typeof react1.createContext;
322
+ declare const createElement: typeof react1.createElement;
323
+ declare const useContext: typeof react1.useContext;
324
+ declare const useEffect: typeof react1.useEffect;
325
+ declare const useState: typeof react1.useState;
326
+ declare const useRef: typeof react1.useRef;
327
+ declare const use: typeof react1.use;
328
+ declare const useReducer: typeof react1.useReducer;
329
+ //#endregion
330
+ export { App, Const, File, Function, FunctionParams, Indent, Type, createApp, createContext, createElement, createFunctionParams, use, useApp, useContext, useEffect, useFile, useLifecycle, useReducer, useRef, useState };
331
+ //# sourceMappingURL=index.d.ts.map