round-core 0.0.7 → 0.0.9

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 (76) hide show
  1. package/README.md +62 -41
  2. package/dist/index.d.ts +341 -341
  3. package/dist/index.js +211 -192
  4. package/dist/vite-plugin.js +52 -3
  5. package/package.json +7 -4
  6. package/.github/workflows/benchmarks.yml +0 -44
  7. package/Round.png +0 -0
  8. package/benchmarks/apps/react/index.html +0 -9
  9. package/benchmarks/apps/react/main.jsx +0 -25
  10. package/benchmarks/apps/react/vite.config.js +0 -12
  11. package/benchmarks/apps/round/index.html +0 -11
  12. package/benchmarks/apps/round/main.jsx +0 -22
  13. package/benchmarks/apps/round/vite.config.js +0 -15
  14. package/benchmarks/bun.lock +0 -497
  15. package/benchmarks/dist-bench/react/assets/index-9KGqIPOU.js +0 -8
  16. package/benchmarks/dist-bench/react/index.html +0 -10
  17. package/benchmarks/dist-bench/round/assets/index-CBBIRhox.js +0 -52
  18. package/benchmarks/dist-bench/round/index.html +0 -8
  19. package/benchmarks/package.json +0 -22
  20. package/benchmarks/scripts/measure-build.js +0 -64
  21. package/benchmarks/tests/runtime.bench.js +0 -51
  22. package/benchmarks/vitest.config.js +0 -8
  23. package/bun.lock +0 -425
  24. package/cli.js +0 -2
  25. package/extension/.vscodeignore +0 -5
  26. package/extension/LICENSE +0 -21
  27. package/extension/cgmanifest.json +0 -45
  28. package/extension/extension.js +0 -163
  29. package/extension/images/round-config-dark.svg +0 -10
  30. package/extension/images/round-config-light.svg +0 -10
  31. package/extension/images/round-dark.svg +0 -10
  32. package/extension/images/round-light.svg +0 -10
  33. package/extension/javascript-language-configuration.json +0 -241
  34. package/extension/package-lock.json +0 -97
  35. package/extension/package.json +0 -119
  36. package/extension/package.nls.json +0 -4
  37. package/extension/round-0.1.0.vsix +0 -0
  38. package/extension/round-lsp/package-lock.json +0 -185
  39. package/extension/round-lsp/package.json +0 -21
  40. package/extension/round-lsp/src/round-transformer-lsp.js +0 -248
  41. package/extension/round-lsp/src/server.js +0 -396
  42. package/extension/snippets/javascript.code-snippets +0 -266
  43. package/extension/snippets/round.code-snippets +0 -109
  44. package/extension/syntaxes/JavaScript.tmLanguage.json +0 -6001
  45. package/extension/syntaxes/JavaScriptReact.tmLanguage.json +0 -6066
  46. package/extension/syntaxes/Readme.md +0 -12
  47. package/extension/syntaxes/Regular Expressions (JavaScript).tmLanguage +0 -237
  48. package/extension/syntaxes/Round.tmLanguage.json +0 -290
  49. package/extension/syntaxes/RoundInject.tmLanguage.json +0 -20
  50. package/extension/tags-language-configuration.json +0 -152
  51. package/extension/temp_astro/package-lock.json +0 -912
  52. package/extension/temp_astro/package.json +0 -16
  53. package/extension/types/round-core.d.ts +0 -326
  54. package/index.js +0 -2
  55. package/logo.svg +0 -10
  56. package/src/cli.js +0 -608
  57. package/src/compiler/index.js +0 -2
  58. package/src/compiler/transformer.js +0 -443
  59. package/src/compiler/vite-plugin.js +0 -472
  60. package/src/index.d.ts +0 -341
  61. package/src/index.js +0 -45
  62. package/src/runtime/context.js +0 -101
  63. package/src/runtime/dom.js +0 -403
  64. package/src/runtime/error-boundary.js +0 -48
  65. package/src/runtime/error-reporter.js +0 -13
  66. package/src/runtime/error-store.js +0 -85
  67. package/src/runtime/errors.js +0 -152
  68. package/src/runtime/lifecycle.js +0 -142
  69. package/src/runtime/markdown.js +0 -72
  70. package/src/runtime/router.js +0 -468
  71. package/src/runtime/signals.js +0 -548
  72. package/src/runtime/store.js +0 -215
  73. package/src/runtime/suspense.js +0 -128
  74. package/vite.config.build.js +0 -48
  75. package/vite.config.js +0 -10
  76. package/vitest.config.js +0 -8
package/dist/index.d.ts CHANGED
@@ -1,341 +1,341 @@
1
- /**
2
- * Round Framework Type Definitions
3
- */
4
-
5
- export interface RoundSignal<T> {
6
- /**
7
- * Get or set the current value.
8
- */
9
- (newValue?: T): T;
10
-
11
- /**
12
- * Get the current value (reactive).
13
- */
14
- value: T;
15
-
16
- /**
17
- * Get the current value without tracking dependencies.
18
- */
19
- peek(): T;
20
-
21
- /**
22
- * Creates a transformed view of this signal.
23
- */
24
- transform<U>(fromInput: (v: U) => T, toOutput: (v: T) => U): RoundSignal<U>;
25
-
26
- /**
27
- * Attaches validation logic to the signal.
28
- */
29
- validate(validator: (next: T, prev: T) => string | boolean | undefined | null, options?: {
30
- /** Timing of validation: 'input' (default) or 'blur'. */
31
- validateOn?: 'input' | 'blur';
32
- /** Whether to run validation immediately on startup. */
33
- validateInitial?: boolean;
34
- }): RoundSignal<T> & {
35
- /** Signal containing the current validation error message. */
36
- error: RoundSignal<string | null>;
37
- /** Manually trigger validation check. Returns true if valid. */
38
- check(): boolean
39
- };
40
-
41
- /**
42
- * Creates a read/write view of a specific property path.
43
- */
44
- $pick<K extends keyof T>(path: K): RoundSignal<T[K]>;
45
- $pick(path: string | string[]): RoundSignal<any>;
46
-
47
- /**
48
- * Internal: marks the signal as bindable for two-way bindings.
49
- */
50
- bind?: boolean;
51
- }
52
-
53
- export interface Signal {
54
- <T>(initialValue?: T): RoundSignal<T>;
55
- object<T extends object>(initialState: T): { [K in keyof T]: RoundSignal<T[K]> };
56
- }
57
-
58
- /**
59
- * Creates a reactive signal.
60
- */
61
- export const signal: Signal;
62
-
63
- /**
64
- * Creates a bindable signal intended for two-way DOM bindings.
65
- */
66
- export interface Bindable {
67
- <T>(initialValue?: T): RoundSignal<T>;
68
- object<T extends object>(initialState: T): { [K in keyof T]: RoundSignal<T[K]> };
69
- }
70
-
71
- /**
72
- * Creates a bindable signal intended for two-way DOM bindings.
73
- */
74
- export const bindable: Bindable;
75
-
76
- /**
77
- * Run a function without tracking any signals it reads.
78
- * Any signals accessed inside the function will not become dependencies of the current effect.
79
- */
80
- export function untrack<T>(fn: () => T): T;
81
-
82
- /**
83
- * Create a reactive side-effect that runs whenever its signal dependencies change.
84
- */
85
- export function effect(fn: () => void | (() => void), options?: {
86
- /** If false, the effect won't run immediately on creation. Defaults to true. */
87
- onLoad?: boolean
88
- }): () => void;
89
-
90
- /**
91
- * Create a reactive side-effect with explicit dependencies.
92
- */
93
- export function effect(deps: any[], fn: () => void | (() => void), options?: {
94
- /** If false, the effect won't run immediately on creation. Defaults to true. */
95
- onLoad?: boolean
96
- }): () => void;
97
-
98
- /**
99
- * Create a read-only computed signal derived from other signals.
100
- */
101
- export function derive<T>(fn: () => T): () => T;
102
-
103
- /**
104
- * Create a read/write view of a specific path within a signal object.
105
- */
106
- export function pick<T = any>(root: RoundSignal<any>, path: string | string[]): RoundSignal<T>;
107
-
108
- /**
109
- * Store API
110
- */
111
- export interface RoundStore<T> {
112
- /**
113
- * Access a specific key from the store as a bindable signal.
114
- */
115
- use<K extends keyof T>(key: K): RoundSignal<T[K]>;
116
-
117
- /**
118
- * Update a specific key in the store.
119
- */
120
- set<K extends keyof T>(key: K, value: T[K]): T[K];
121
-
122
- /**
123
- * Batch update multiple keys in the store.
124
- */
125
- patch(obj: Partial<T>): void;
126
-
127
- /**
128
- * Get a snapshot of the current state.
129
- */
130
- snapshot(options?: {
131
- /** If true, the returned values will be reactive signals. */
132
- reactive?: boolean
133
- }): T;
134
-
135
- /**
136
- * Enable persistence for the store.
137
- */
138
- persist(storageKey: string, options?: {
139
- /** The storage implementation (defaults to localStorage). */
140
- storage?: Storage;
141
- /** Debounce time in milliseconds for writes. */
142
- debounce?: number;
143
- /** Array of keys to exclude from persistence. */
144
- exclude?: string[];
145
- }): RoundStore<T>;
146
-
147
- /**
148
- * Action methods defined during store creation.
149
- */
150
- actions: Record<string, Function>;
151
- }
152
-
153
- /**
154
- * Create a shared global state store with actions and optional persistence.
155
- */
156
- export function createStore<T, A extends Record<string, (state: T, ...args: any[]) => Partial<T> | void>>(
157
- initialState: T,
158
- actions?: A
159
- ): RoundStore<T> & { [K in keyof A]: (...args: Parameters<A[K]> extends [any, ...infer P] ? P : never) => any };
160
-
161
- /**
162
- * Router API
163
- */
164
- export interface RouteProps {
165
- /** The path to match. Must start with a forward slash. */
166
- route?: string;
167
- /** If true, only matches if the path is exactly the same. */
168
- exact?: boolean;
169
- /** Page title to set in the document header when active. */
170
- title?: string;
171
- /** Meta description to set in the document header when active. */
172
- description?: string;
173
- /** Advanced head configuration including links and meta tags. */
174
- head?: any;
175
- /** Fragment or elements to render when matched. */
176
- children?: any;
177
- }
178
-
179
- /**
180
- * Define a route that renders its children when the path matches.
181
- */
182
- export function Route(props: RouteProps): any;
183
-
184
- /**
185
- * An alias for Route, typically used for top-level pages.
186
- */
187
- export function Page(props: RouteProps): any;
188
-
189
- export interface LinkProps {
190
- /** The destination path. */
191
- href: string;
192
- /** Alias for href. */
193
- to?: string;
194
- /** Use SPA navigation (prevents full page reloads). Defaults to true. */
195
- spa?: boolean;
196
- /** Force a full page reload on navigation. */
197
- reload?: boolean;
198
- /** Custom click event handler. */
199
- onClick?: (e: MouseEvent) => void;
200
- /** Link content (text or elements). */
201
- children?: any;
202
- [key: string]: any;
203
- }
204
-
205
- /**
206
- * A standard link component that performs SPA navigation.
207
- */
208
- export function Link(props: LinkProps): any;
209
-
210
- /**
211
- * Define a fallback component or content for when no routes match.
212
- */
213
- export function NotFound(props: {
214
- /** Optional component to render for the 404 state. */
215
- component?: any;
216
- /** Fallback content. ignored if 'component' is provided. */
217
- children?: any
218
- }): any;
219
-
220
- /**
221
- * Navigate to a different path programmatically.
222
- */
223
- export function navigate(to: string, options?: {
224
- /** If true, replaces the current history entry instead of pushing. */
225
- replace?: boolean
226
- }): void;
227
-
228
- /**
229
- * Hook to get a reactive function returning the current normalized pathname.
230
- */
231
- export function usePathname(): () => string;
232
-
233
- /**
234
- * Get the current normalized pathname.
235
- */
236
- export function getPathname(): string;
237
-
238
- /**
239
- * Hook to get a reactive function returning the current location object.
240
- */
241
- export function useLocation(): () => { pathname: string; search: string; hash: string };
242
-
243
- /**
244
- * Get the current location object (pathname, search, hash).
245
- */
246
- export function getLocation(): { pathname: string; search: string; hash: string };
247
-
248
- /**
249
- * Hook to get a reactive function returning whether the current path has no matches.
250
- */
251
- export function useIsNotFound(): () => boolean;
252
-
253
- /**
254
- * Get whether the current path is NOT matched by any defined route.
255
- */
256
- export function getIsNotFound(): boolean;
257
-
258
- /**
259
- * DOM & Context API
260
- */
261
-
262
- /**
263
- * Create a DOM element or instance a component.
264
- */
265
- export function createElement(tag: any, props?: any, ...children: any[]): any;
266
-
267
- /**
268
- * A grouping component that returns its children without a wrapper element.
269
- */
270
- export function Fragment(props: { children?: any }): any;
271
-
272
- export interface Context<T> {
273
- /** Internal identifier for the context. */
274
- id: number;
275
- /** Default value used when no Provider is found in the tree. */
276
- defaultValue: T;
277
- /** Component that provides a value to all its descendants. */
278
- Provider: (props: { value: T; children?: any }) => any;
279
- }
280
-
281
- /**
282
- * Create a new Context object for sharing state between components.
283
- */
284
- export function createContext<T>(defaultValue?: T): Context<T>;
285
-
286
- /**
287
- * Read the current value of a context from the component tree.
288
- */
289
- export function readContext<T>(ctx: Context<T>): T;
290
-
291
- /**
292
- * Returns a reactive function that reads the current context value.
293
- */
294
- export function bindContext<T>(ctx: Context<T>): () => T;
295
-
296
- /**
297
- * Async & Code Splitting
298
- */
299
-
300
- /**
301
- * Mark a component for lazy loading (code-splitting).
302
- * Expects a function returning a dynamic import promise.
303
- */
304
- export function lazy<T>(fn: () => Promise<{ default: T } | T>): any;
305
-
306
- declare module "*.round";
307
-
308
- export interface SuspenseProps {
309
- /** Content to show while children (e.g. lazy components) are loading. */
310
- fallback: any;
311
- /** Content that might trigger a loading state. */
312
- children?: any;
313
- }
314
-
315
- /**
316
- * Component that boundaries async operations and renders a fallback while loading.
317
- */
318
- export function Suspense(props: SuspenseProps): any;
319
-
320
- /**
321
- * Head Management
322
- */
323
-
324
- /**
325
- * Define static head metadata (titles, meta tags, favicons, etc.).
326
- */
327
- export function startHead(head: any): any;
328
-
329
- /**
330
- * Markdown
331
- */
332
-
333
- /**
334
- * Component that renders Markdown content into HTML.
335
- */
336
- export function Markdown(props: {
337
- /** The markdown string or a function returning it. */
338
- content: string | (() => string);
339
- /** Remark/Rehype configuration options. */
340
- options?: any
341
- }): any;
1
+ /**
2
+ * Round Framework Type Definitions
3
+ */
4
+
5
+ export interface RoundSignal<T> {
6
+ /**
7
+ * Get or set the current value.
8
+ */
9
+ (newValue?: T): T;
10
+
11
+ /**
12
+ * Get the current value (reactive).
13
+ */
14
+ value: T;
15
+
16
+ /**
17
+ * Get the current value without tracking dependencies.
18
+ */
19
+ peek(): T;
20
+
21
+ /**
22
+ * Creates a transformed view of this signal.
23
+ */
24
+ transform<U>(fromInput: (v: U) => T, toOutput: (v: T) => U): RoundSignal<U>;
25
+
26
+ /**
27
+ * Attaches validation logic to the signal.
28
+ */
29
+ validate(validator: (next: T, prev: T) => string | boolean | undefined | null, options?: {
30
+ /** Timing of validation: 'input' (default) or 'blur'. */
31
+ validateOn?: 'input' | 'blur';
32
+ /** Whether to run validation immediately on startup. */
33
+ validateInitial?: boolean;
34
+ }): RoundSignal<T> & {
35
+ /** Signal containing the current validation error message. */
36
+ error: RoundSignal<string | null>;
37
+ /** Manually trigger validation check. Returns true if valid. */
38
+ check(): boolean
39
+ };
40
+
41
+ /**
42
+ * Creates a read/write view of a specific property path.
43
+ */
44
+ $pick<K extends keyof T>(path: K): RoundSignal<T[K]>;
45
+ $pick(path: string | string[]): RoundSignal<any>;
46
+
47
+ /**
48
+ * Internal: marks the signal as bindable for two-way bindings.
49
+ */
50
+ bind?: boolean;
51
+ }
52
+
53
+ export interface Signal {
54
+ <T>(initialValue?: T): RoundSignal<T>;
55
+ object<T extends object>(initialState: T): { [K in keyof T]: RoundSignal<T[K]> };
56
+ }
57
+
58
+ /**
59
+ * Creates a reactive signal.
60
+ */
61
+ export const signal: Signal;
62
+
63
+ /**
64
+ * Creates a bindable signal intended for two-way DOM bindings.
65
+ */
66
+ export interface Bindable {
67
+ <T>(initialValue?: T): RoundSignal<T>;
68
+ object<T extends object>(initialState: T): { [K in keyof T]: RoundSignal<T[K]> };
69
+ }
70
+
71
+ /**
72
+ * Creates a bindable signal intended for two-way DOM bindings.
73
+ */
74
+ export const bindable: Bindable;
75
+
76
+ /**
77
+ * Run a function without tracking any signals it reads.
78
+ * Any signals accessed inside the function will not become dependencies of the current effect.
79
+ */
80
+ export function untrack<T>(fn: () => T): T;
81
+
82
+ /**
83
+ * Create a reactive side-effect that runs whenever its signal dependencies change.
84
+ */
85
+ export function effect(fn: () => void | (() => void), options?: {
86
+ /** If false, the effect won't run immediately on creation. Defaults to true. */
87
+ onLoad?: boolean
88
+ }): () => void;
89
+
90
+ /**
91
+ * Create a reactive side-effect with explicit dependencies.
92
+ */
93
+ export function effect(deps: any[], fn: () => void | (() => void), options?: {
94
+ /** If false, the effect won't run immediately on creation. Defaults to true. */
95
+ onLoad?: boolean
96
+ }): () => void;
97
+
98
+ /**
99
+ * Create a read-only computed signal derived from other signals.
100
+ */
101
+ export function derive<T>(fn: () => T): () => T;
102
+
103
+ /**
104
+ * Create a read/write view of a specific path within a signal object.
105
+ */
106
+ export function pick<T = any>(root: RoundSignal<any>, path: string | string[]): RoundSignal<T>;
107
+
108
+ /**
109
+ * Store API
110
+ */
111
+ export interface RoundStore<T> {
112
+ /**
113
+ * Access a specific key from the store as a bindable signal.
114
+ */
115
+ use<K extends keyof T>(key: K): RoundSignal<T[K]>;
116
+
117
+ /**
118
+ * Update a specific key in the store.
119
+ */
120
+ set<K extends keyof T>(key: K, value: T[K]): T[K];
121
+
122
+ /**
123
+ * Batch update multiple keys in the store.
124
+ */
125
+ patch(obj: Partial<T>): void;
126
+
127
+ /**
128
+ * Get a snapshot of the current state.
129
+ */
130
+ snapshot(options?: {
131
+ /** If true, the returned values will be reactive signals. */
132
+ reactive?: boolean
133
+ }): T;
134
+
135
+ /**
136
+ * Enable persistence for the store.
137
+ */
138
+ persist(storageKey: string, options?: {
139
+ /** The storage implementation (defaults to localStorage). */
140
+ storage?: Storage;
141
+ /** Debounce time in milliseconds for writes. */
142
+ debounce?: number;
143
+ /** Array of keys to exclude from persistence. */
144
+ exclude?: string[];
145
+ }): RoundStore<T>;
146
+
147
+ /**
148
+ * Action methods defined during store creation.
149
+ */
150
+ actions: Record<string, Function>;
151
+ }
152
+
153
+ /**
154
+ * Create a shared global state store with actions and optional persistence.
155
+ */
156
+ export function createStore<T, A extends Record<string, (state: T, ...args: any[]) => Partial<T> | void>>(
157
+ initialState: T,
158
+ actions?: A
159
+ ): RoundStore<T> & { [K in keyof A]: (...args: Parameters<A[K]> extends [any, ...infer P] ? P : never) => any };
160
+
161
+ /**
162
+ * Router API
163
+ */
164
+ export interface RouteProps {
165
+ /** The path to match. Must start with a forward slash. */
166
+ route?: string;
167
+ /** If true, only matches if the path is exactly the same. */
168
+ exact?: boolean;
169
+ /** Page title to set in the document header when active. */
170
+ title?: string;
171
+ /** Meta description to set in the document header when active. */
172
+ description?: string;
173
+ /** Advanced head configuration including links and meta tags. */
174
+ head?: any;
175
+ /** Fragment or elements to render when matched. */
176
+ children?: any;
177
+ }
178
+
179
+ /**
180
+ * Define a route that renders its children when the path matches.
181
+ */
182
+ export function Route(props: RouteProps): any;
183
+
184
+ /**
185
+ * An alias for Route, typically used for top-level pages.
186
+ */
187
+ export function Page(props: RouteProps): any;
188
+
189
+ export interface LinkProps {
190
+ /** The destination path. */
191
+ href: string;
192
+ /** Alias for href. */
193
+ to?: string;
194
+ /** Use SPA navigation (prevents full page reloads). Defaults to true. */
195
+ spa?: boolean;
196
+ /** Force a full page reload on navigation. */
197
+ reload?: boolean;
198
+ /** Custom click event handler. */
199
+ onClick?: (e: MouseEvent) => void;
200
+ /** Link content (text or elements). */
201
+ children?: any;
202
+ [key: string]: any;
203
+ }
204
+
205
+ /**
206
+ * A standard link component that performs SPA navigation.
207
+ */
208
+ export function Link(props: LinkProps): any;
209
+
210
+ /**
211
+ * Define a fallback component or content for when no routes match.
212
+ */
213
+ export function NotFound(props: {
214
+ /** Optional component to render for the 404 state. */
215
+ component?: any;
216
+ /** Fallback content. ignored if 'component' is provided. */
217
+ children?: any
218
+ }): any;
219
+
220
+ /**
221
+ * Navigate to a different path programmatically.
222
+ */
223
+ export function navigate(to: string, options?: {
224
+ /** If true, replaces the current history entry instead of pushing. */
225
+ replace?: boolean
226
+ }): void;
227
+
228
+ /**
229
+ * Hook to get a reactive function returning the current normalized pathname.
230
+ */
231
+ export function usePathname(): () => string;
232
+
233
+ /**
234
+ * Get the current normalized pathname.
235
+ */
236
+ export function getPathname(): string;
237
+
238
+ /**
239
+ * Hook to get a reactive function returning the current location object.
240
+ */
241
+ export function useLocation(): () => { pathname: string; search: string; hash: string };
242
+
243
+ /**
244
+ * Get the current location object (pathname, search, hash).
245
+ */
246
+ export function getLocation(): { pathname: string; search: string; hash: string };
247
+
248
+ /**
249
+ * Hook to get a reactive function returning whether the current path has no matches.
250
+ */
251
+ export function useIsNotFound(): () => boolean;
252
+
253
+ /**
254
+ * Get whether the current path is NOT matched by any defined route.
255
+ */
256
+ export function getIsNotFound(): boolean;
257
+
258
+ /**
259
+ * DOM & Context API
260
+ */
261
+
262
+ /**
263
+ * Create a DOM element or instance a component.
264
+ */
265
+ export function createElement(tag: any, props?: any, ...children: any[]): any;
266
+
267
+ /**
268
+ * A grouping component that returns its children without a wrapper element.
269
+ */
270
+ export function Fragment(props: { children?: any }): any;
271
+
272
+ export interface Context<T> {
273
+ /** Internal identifier for the context. */
274
+ id: number;
275
+ /** Default value used when no Provider is found in the tree. */
276
+ defaultValue: T;
277
+ /** Component that provides a value to all its descendants. */
278
+ Provider: (props: { value: T; children?: any }) => any;
279
+ }
280
+
281
+ /**
282
+ * Create a new Context object for sharing state between components.
283
+ */
284
+ export function createContext<T>(defaultValue?: T): Context<T>;
285
+
286
+ /**
287
+ * Read the current value of a context from the component tree.
288
+ */
289
+ export function readContext<T>(ctx: Context<T>): T;
290
+
291
+ /**
292
+ * Returns a reactive function that reads the current context value.
293
+ */
294
+ export function bindContext<T>(ctx: Context<T>): () => T;
295
+
296
+ /**
297
+ * Async & Code Splitting
298
+ */
299
+
300
+ /**
301
+ * Mark a component for lazy loading (code-splitting).
302
+ * Expects a function returning a dynamic import promise.
303
+ */
304
+ export function lazy<T>(fn: () => Promise<{ default: T } | T>): any;
305
+
306
+ declare module "*.round";
307
+
308
+ export interface SuspenseProps {
309
+ /** Content to show while children (e.g. lazy components) are loading. */
310
+ fallback: any;
311
+ /** Content that might trigger a loading state. */
312
+ children?: any;
313
+ }
314
+
315
+ /**
316
+ * Component that boundaries async operations and renders a fallback while loading.
317
+ */
318
+ export function Suspense(props: SuspenseProps): any;
319
+
320
+ /**
321
+ * Head Management
322
+ */
323
+
324
+ /**
325
+ * Define static head metadata (titles, meta tags, favicons, etc.).
326
+ */
327
+ export function startHead(head: any): any;
328
+
329
+ /**
330
+ * Markdown
331
+ */
332
+
333
+ /**
334
+ * Component that renders Markdown content into HTML.
335
+ */
336
+ export function Markdown(props: {
337
+ /** The markdown string or a function returning it. */
338
+ content: string | (() => string);
339
+ /** Remark/Rehype configuration options. */
340
+ options?: any
341
+ }): any;