@solidjs/web 2.0.0-rc.7 → 2.0.0-rc.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 (88) hide show
  1. package/dist/server.dev.js +638 -124
  2. package/dist/server.js +445 -94
  3. package/dist/{server.dev.cjs → server.observe.js} +602 -416
  4. package/dist/web.dev.js +229 -49
  5. package/dist/web.js +194 -46
  6. package/dist/{web.cjs → web.observe.js} +290 -275
  7. package/frames/dist/client.dev.js +103 -4
  8. package/frames/dist/client.js +5 -2
  9. package/frames/dist/{client.dev.cjs → client.observe.js} +139 -79
  10. package/frames/dist/server.dev.js +540 -79
  11. package/frames/dist/server.js +371 -52
  12. package/frames/dist/{server.cjs → server.observe.js} +544 -140
  13. package/frames/package.json +15 -21
  14. package/package.json +145 -294
  15. package/serialization/decode/package.json +3 -9
  16. package/serialization/package.json +3 -9
  17. package/serialization/types/serializer-decode.d.ts +49 -2
  18. package/server-functions/dist/{client.cjs → client.dev.js} +140 -107
  19. package/server-functions/dist/client.js +74 -69
  20. package/server-functions/dist/client.observe.js +1102 -0
  21. package/server-functions/dist/server.dev.js +430 -41
  22. package/server-functions/dist/server.js +367 -40
  23. package/server-functions/dist/{server.cjs → server.observe.js} +430 -85
  24. package/server-functions/package.json +15 -21
  25. package/server-functions/rich-args/package.json +3 -9
  26. package/storage/package.json +3 -9
  27. package/types/client.d.ts +39 -1
  28. package/types/diagnostics.d.ts +24 -0
  29. package/types/frames/frame-transport.d.ts +1 -1
  30. package/types/frames/serializer-decode.d.ts +49 -2
  31. package/types/index.d.ts +25 -15
  32. package/types/index.server.d.ts +35 -8
  33. package/types/jsx.d.ts +15 -4
  34. package/types/observe.d.ts +294 -0
  35. package/types/response.d.ts +18 -0
  36. package/types/serializer-decode.d.ts +49 -2
  37. package/types/server-functions/client.d.ts +32 -22
  38. package/types/server-functions/server.d.ts +55 -41
  39. package/types/server-functions/shared.d.ts +39 -9
  40. package/types/server-mock.d.ts +26 -4
  41. package/types/server-observe.d.ts +39 -0
  42. package/types/server.d.ts +105 -6
  43. package/types/trace.d.ts +79 -0
  44. package/dist/server.cjs +0 -3708
  45. package/dist/web.dev.cjs +0 -2285
  46. package/frames/dist/client.cjs +0 -2043
  47. package/frames/dist/server.dev.cjs +0 -4584
  48. package/serialization/dist/decode.cjs +0 -155
  49. package/serialization/dist/serialization.cjs +0 -275
  50. package/serialization/types-cjs/index.d.cts +0 -101
  51. package/serialization/types-cjs/package.json +0 -3
  52. package/serialization/types-cjs/serializer-decode.d.cts +0 -172
  53. package/serialization/types-cjs/serializer.d.cts +0 -101
  54. package/server-functions/dist/rich-args.cjs +0 -11
  55. package/server-functions/dist/server.dev.cjs +0 -2409
  56. package/storage/dist/storage.cjs +0 -12
  57. package/storage/types-cjs/index.d.cts +0 -28
  58. package/storage/types-cjs/package.json +0 -3
  59. package/types-cjs/client.d.cts +0 -197
  60. package/types-cjs/constants.d.cts +0 -20
  61. package/types-cjs/cookies.d.cts +0 -41
  62. package/types-cjs/frames/client.d.cts +0 -36
  63. package/types-cjs/frames/frame-client.d.cts +0 -370
  64. package/types-cjs/frames/frame-container-plugin.d.cts +0 -71
  65. package/types-cjs/frames/frame-sink.d.cts +0 -92
  66. package/types-cjs/frames/frame-transport.d.cts +0 -189
  67. package/types-cjs/frames/serializer-decode.d.cts +0 -172
  68. package/types-cjs/frames/serializer.d.cts +0 -101
  69. package/types-cjs/frames/server.d.cts +0 -52
  70. package/types-cjs/head.d.cts +0 -19
  71. package/types-cjs/index.d.cts +0 -191
  72. package/types-cjs/index.server.d.cts +0 -147
  73. package/types-cjs/jsx-properties.d.cts +0 -93
  74. package/types-cjs/jsx.d.cts +0 -4146
  75. package/types-cjs/package.json +0 -3
  76. package/types-cjs/reconcile.d.cts +0 -1
  77. package/types-cjs/render.d.cts +0 -6
  78. package/types-cjs/response.d.cts +0 -81
  79. package/types-cjs/serializer-decode.d.cts +0 -172
  80. package/types-cjs/serializer.d.cts +0 -101
  81. package/types-cjs/server-functions/client.d.cts +0 -184
  82. package/types-cjs/server-functions/flash.d.cts +0 -36
  83. package/types-cjs/server-functions/registry.d.cts +0 -100
  84. package/types-cjs/server-functions/rich-args.d.cts +0 -1
  85. package/types-cjs/server-functions/server.d.cts +0 -546
  86. package/types-cjs/server-functions/shared.d.cts +0 -283
  87. package/types-cjs/server-mock.d.cts +0 -337
  88. package/types-cjs/server.d.cts +0 -408
@@ -1,408 +0,0 @@
1
- import { sharedConfig, getOwner, createComponent, untrack, merge as mergeProps, ssrScope as scope } from "solid-js";
2
- import { effect, memo } from "./render.cjs";
3
- export { parseCookieHeader, serializeCookie } from "./cookies.cjs";
4
- export { clearFlashCookie, hasFlashCookie } from "./cookies.cjs";
5
- export { getServerFunctionMetadata, getServerFunctionRPC, isServerFunction } from "./server-functions/registry.cjs";
6
- import { JSX } from "./jsx.cjs";
7
- import { SerializerPlugin } from "./serializer-decode.cjs";
8
- type PreloadLinkAttributes = {
9
- type?: string;
10
- crossorigin?: JSX.HTMLCrossorigin;
11
- integrity?: string;
12
- referrerpolicy?: JSX.HTMLReferrerPolicy;
13
- fetchpriority?: JSX.HTMLFetchPriority;
14
- media?: string;
15
- };
16
- /**
17
- * An explicit `<link rel="preload">` emitted by the SSR asset pipeline.
18
- *
19
- * `as` is the HTML Standard's set of preload destinations exactly — anything
20
- * else translates to null and the browser does nothing with the link.
21
- *
22
- * `imagesrcset` candidates must already be resolved by the integration: they
23
- * are carried verbatim (a relative candidate resolves against the DOCUMENT
24
- * URL, not the manifest base). Pair it with `imagesizes` whenever a candidate
25
- * uses a width descriptor, which the spec requires — without it the source
26
- * size falls back to `100vw` and the preload can miss the image the `<img>`
27
- * selects. Omitting `href` is the spec's own recommendation for the source-set
28
- * form: it would only serve browsers without `imagesrcset` support, and there
29
- * it would likely preload the wrong candidate.
30
- */
31
- export type PreloadLink = PreloadLinkAttributes & ({
32
- href: string;
33
- as: Exclude<JSX.HTMLPreloadAs, "image">;
34
- imagesrcset?: never;
35
- imagesizes?: never;
36
- } | {
37
- href: string;
38
- as: "image";
39
- imagesrcset?: string;
40
- imagesizes?: string;
41
- } | {
42
- href?: never;
43
- as: "image";
44
- imagesrcset: string;
45
- imagesizes?: string;
46
- });
47
- /**
48
- * Static asset graph consumed by the SSR pipeline. This is Solid's own
49
- * contract — a parsed Vite client manifest satisfies it structurally
50
- * (unknown fields pass through untyped), but any bundler integration can
51
- * produce it. Only these fields are ever read: `preloads` is Solid's
52
- * extension slot for explicit typed links the integration selects.
53
- */
54
- export type AssetManifest = Record<string, {
55
- file: string;
56
- css?: string[];
57
- isEntry?: boolean;
58
- imports?: string[];
59
- preloads?: PreloadLink[];
60
- }> & {
61
- _base?: string;
62
- };
63
- /** Inline style content, e.g. dev CSS collected from a bundler's module graph. */
64
- export type InlineStyleAsset = {
65
- id: string;
66
- content: string;
67
- attrs?: Record<string, string>;
68
- };
69
- export type ResolvedAssets = {
70
- js: string[];
71
- css: (string | InlineStyleAsset)[];
72
- preloads?: PreloadLink[];
73
- };
74
- /**
75
- * Resolver form of the manifest option — the primitive a dev server
76
- * implements against its live module graph (a static manifest object is
77
- * normalized into a sync resolver internally). `resolve` may return a
78
- * promise (async resolvers require streaming rendering); CSS entries may be
79
- * URL strings (emitted as load-gated `<link>` tags) or inline-style
80
- * descriptors (emitted as `<style>` tags), and `preloads` carries explicit
81
- * preload links selected by the integration. A bare `resolve`-shaped
82
- * function is accepted as shorthand for `{ resolve }`.
83
- */
84
- export type AssetResolver = {
85
- resolve(key: string): ResolvedAssets | null | undefined | Promise<ResolvedAssets | null | undefined>;
86
- /**
87
- * Synchronous fast path answering with whatever is knowable without async
88
- * work (typically js URLs, omitting css). Sync consumers — e.g. a lazy
89
- * component's `moduleUrl` getter used by islands — use this when `resolve`
90
- * would return a promise, so adapters should provide it whenever possible.
91
- */
92
- resolveSync?(key: string): ResolvedAssets | null | undefined;
93
- };
94
- /** Bare-function shorthand for `AssetResolver` (no sync fast path). */
95
- export type AssetResolverFn = (key: string) => ResolvedAssets | null | undefined | Promise<ResolvedAssets | null | undefined>;
96
- /**
97
- * CSP nonce for the tags a server render emits. A string applies to both
98
- * nonce-aware destinations. A `{ script, style }` pair routes each tag to
99
- * the directive governing its fetch (`script-src-elem` / `style-src-elem`,
100
- * falling back to `script-src` / `style-src` then `default-src`). Both
101
- * keys are required; `false` leaves that destination un-nonced. Worker
102
- * destinations take the script nonce, which only applies when their own
103
- * fallback reaches `script-src`. A nonce on a `useHead` tag's own props
104
- * always wins.
105
- *
106
- * Only `renderToString` / `renderToStream` take this shape. Surfaces that
107
- * emit one script (`HydrationScript`, `generateHydrationScript`,
108
- * `createSSRResponse`) take a string — project with `scriptNonce`.
109
- */
110
- export type CSPNonce = string | {
111
- script: string | false;
112
- style: string | false;
113
- };
114
- /**
115
- * A head tag descriptor. Props values may be getters (evaluated lazily on
116
- * the server — at the owning flush boundary — and reactively on the client);
117
- * `children` is the text body (title text, inline style/script content).
118
- * `key` overrides the built-in dedupe identity (`title` is a hard singleton
119
- * that `key` cannot fork).
120
- *
121
- * Getters must be plain reads: they evaluate at flush time here (under no
122
- * component owner) and inside registry-owned computations on the client, so
123
- * a getter that allocates a reactive owner (`createMemo`, a `children()`
124
- * helper) consumes a hydration id slot on one side only and desyncs every
125
- * id allocated after the `useHead` call. Create such helpers eagerly at
126
- * component position and read them from the getter. See
127
- * docs/head-management-rfc.md.
128
- */
129
- export type HeadTag = {
130
- tag: "title" | "meta" | "link" | "style" | "script" | "base";
131
- props: Record<string, any>;
132
- key?: string | (() => string);
133
- };
134
- /**
135
- * The mutable response head an integration's handler exposes on the request
136
- * event as `event.response`: status/statusText/headers it will apply when
137
- * sending the response. A scaffold, not a `Response` — application code
138
- * (e.g. JSX response components) writes to it during render, and the
139
- * handler reads it when the head goes out. Core does not declare the
140
- * `response` property on `RequestEvent` itself: integrations that provide
141
- * one declare it through module augmentation (as `@solidjs/router` does),
142
- * and this type names the shape they agree on. Core's server-function
143
- * handler folds it onto the outgoing response when present — its
144
- * `Set-Cookie` values (cookies appended during the call via
145
- * `serializeCookie`) append cookie-by-cookie, other headers fill gaps —
146
- * and reads it when folding single-flight cookies, but never requires it.
147
- */
148
- export interface ResponseStub {
149
- status?: number;
150
- statusText?: string;
151
- headers: Headers;
152
- /**
153
- * Set once the response head has been derived/sent from this stub —
154
- * status and headers can no longer change. Flip it through
155
- * `commitResponseStub`, which also instruments the stub's `headers` so
156
- * a post-commit write fails loudly (dev build throws, production
157
- * reports + no-ops) instead of silently missing the wire. `status`/
158
- * `statusText` stay plain fields: consumers that write response
159
- * metadata during render (e.g. JSX response components) must still
160
- * treat later status writes and cleanup-time retractions as no-ops.
161
- */
162
- committed?: boolean;
163
- }
164
- /**
165
- * The type of `RequestEvent.locals` — a module-augmentable interface so
166
- * applications can type the state their middleware hangs on the event.
167
- * Augment it through the package that re-exports the event (interface
168
- * identity flows through the re-export chain):
169
- *
170
- * ```ts
171
- * declare module "@solidjs/web" {
172
- * interface RequestEventLocals {
173
- * user: User;
174
- * }
175
- * }
176
- * ```
177
- *
178
- * The index signature keeps un-augmented usage permissive — `locals` is a
179
- * free-form bag by default — so augmentation adds precision for the keys
180
- * it names without gating existing code. The flip side: unaugmented keys
181
- * read as `any` rather than erroring, a deliberate trade (a strict-only
182
- * `locals` would break every untyped write that works today).
183
- */
184
- export interface RequestEventLocals {
185
- [key: string | number | symbol]: any;
186
- }
187
- /**
188
- * The per-request context available on the server: the incoming `Request`
189
- * and a `locals` bag integrations and middleware can hang state on (typed
190
- * through the augmentable `RequestEventLocals`). Frameworks typically
191
- * extend this shape with richer fields (e.g. a `response` head — see
192
- * `ResponseStub`).
193
- */
194
- export interface RequestEvent {
195
- request: Request;
196
- locals: RequestEventLocals;
197
- }
198
- export type { CookieOptions } from "./cookies.cjs";
199
- export type { ServerFunction, ServerFunctionMetadata, ServerFunctionRPC } from "./server-functions/shared.cjs";
200
- export interface SSRResponseOptions {
201
- /** Base head; the stub's status/headers win over it. */
202
- responseInit?: ResponseInit;
203
- /** Nonce carried by the post-flush `<script>` redirect fallback. */
204
- nonce?: string;
205
- /** Rewrites each outgoing HTML chunk (entry script injection, ...). */
206
- transformChunk?: (chunk: string) => string;
207
- }
208
- /**
209
- * Fetch-style middleware: return a `Response` to answer the request, or
210
- * call `next()` (optionally with a substitute `Request`) to advance the
211
- * chain and observe/replace the eventual response.
212
- */
213
- export type FetchMiddleware = (request: Request, next: (request?: Request) => Promise<Response>) => Response | Promise<Response>;
214
- export { createComponent, effect, memo, untrack, mergeProps, scope, getOwner };
215
- export { sharedConfig };
216
- export { DOMWithState, ChildProperties, DOMElements, SVGElements, MathMLElements, VoidElements, RawTextElements, Namespaces, DelegatedEvents } from "./constants.cjs";
217
- export declare function scriptNonce(nonce?: CSPNonce): string | undefined;
218
- export declare function styleNonce(nonce?: CSPNonce): string | undefined;
219
- export declare function useHead(tag: HeadTag | HeadTag[] | (() => HeadTag | HeadTag[])): void;
220
- export declare function renderToString<T>(fn: () => T, options?: {
221
- nonce?: CSPNonce;
222
- renderId?: string;
223
- noScripts?: boolean;
224
- plugins?: SerializerPlugin[];
225
- manifest?: AssetManifest | AssetResolver | AssetResolverFn;
226
- onError?: (err: any) => void;
227
- /**
228
- * Embedded-render contract for hosts that own the document. When the
229
- * render output contains no `</head>`, everything head-bound (resolved
230
- * `useHead` winners, eager resources, tracked asset links, inline
231
- * styles) is delivered here as one HTML string — prelude (charset/base)
232
- * first — for the host to splice into its own `<head>` template, instead
233
- * of being dropped. Called synchronously before `renderToString`
234
- * returns; not called when the output has a `</head>` (splicing is
235
- * automatic then).
236
- */
237
- onHead?: (head: string) => void;
238
- }): string;
239
- export declare function renderToStream<T>(fn: () => T, options?: {
240
- nonce?: CSPNonce;
241
- renderId?: string;
242
- noScripts?: boolean;
243
- plugins?: SerializerPlugin[];
244
- manifest?: AssetManifest | AssetResolver | AssetResolverFn;
245
- onCompleteShell?: (info: {
246
- write: (v: string) => void;
247
- }) => void;
248
- onCompleteAll?: (info: {
249
- write: (v: string) => void;
250
- }) => void;
251
- onError?: (err: any) => void;
252
- /**
253
- * Embedded-render contract for hosts that own the document. When the
254
- * shell contains no `</head>`, everything head-bound at first flush
255
- * (resolved `useHead` winners, eager resources, tracked asset links,
256
- * inline styles) is delivered here as one HTML string — prelude first —
257
- * before the shell chunk is emitted, so the host can write its own
258
- * `<head>` ahead of piping the stream. Post-shell head updates flow
259
- * through the stream itself and apply in the browser. Not called when
260
- * the shell has a `</head>` (splicing is automatic then).
261
- */
262
- onHead?: (head: string) => void;
263
- }): {
264
- /**
265
- * Awaiting the stream resolves with the complete HTML once every boundary
266
- * settles — the fully-settled-string form of the render (`const html =
267
- * await renderToStream(...)`). Render errors route through `onError` and
268
- * the promise resolves with whatever HTML the render produced; it never
269
- * rejects.
270
- *
271
- * Completion is this path's head-freeze point: the request event's
272
- * `response` head (the request scope the render was started in) is
273
- * committed right before the render's final dispose, so
274
- * `httpStatus`/`httpHeader` declarations still live at completion survive
275
- * into `createSSRResponse(html, event)` — which sees the already-committed
276
- * stub and passes it through. The piped forms freeze at shell flush
277
- * instead.
278
- */
279
- then<TResult1 = string, TResult2 = never>(onfulfilled?: ((html: string) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
280
- pipe: (writable: {
281
- write: (v: string) => void;
282
- end: () => void;
283
- }) => void;
284
- pipeTo: (writable: WritableStream) => Promise<void>;
285
- /**
286
- * Lazy `ReadableStream<Uint8Array>` view of the render — hand it straight
287
- * to `new Response(stream.readable)`. First access starts the render
288
- * piping through an internal `TransformStream` (chunks are UTF-8 encoded
289
- * bytes, the same as `pipeTo` writes) and the stream is cached, so
290
- * repeated access returns the same instance. Like `pipe`/`pipeTo`, this
291
- * consumes the render: use exactly one of the three — mixing distinct
292
- * consumers (`readable` after `pipe`/`pipeTo`, or vice versa) throws an
293
- * error naming the conflict.
294
- */
295
- readonly readable: ReadableStream<Uint8Array>;
296
- };
297
- export declare function HydrationScript(props: {
298
- nonce?: string;
299
- eventNames?: string[];
300
- }): JSX.Element;
301
- export declare function ssrGroup<T extends () => any[]>(fn: T, n: number): T;
302
- /**
303
- * The live-hole engine for one frame response. Constructed by the frame
304
- * renderer (frame-sink) and published on the render context; `ssr()` and
305
- * `resolveSSRNode` route content holes through `content()` while it is
306
- * present. Bindings live in the sink's DR-2 ledger — same commit-driven
307
- * sweeps, same equality gating, same end-of-response latch as watched slot
308
- * args.
309
- *
310
- * Every state transition is commit-driven: the engine never chains its own
311
- * promises, so it cannot amplify commits or starve the event loop — a
312
- * pending re-evaluation simply waits for the next commit (async settles
313
- * commit through the render core, and the response's end-latch sweep is
314
- * always the last one).
315
- */
316
- export declare function createLiveHoles(sink: any, scoped: any): {
317
- suppressed: number;
318
- sweeping: boolean;
319
- parent: any;
320
- recordStamp: number;
321
- gateHit: boolean;
322
- /**
323
- * Intercept a thunk content hole: resolve it, and — when the evaluation
324
- * proves re-runnable — mint an id, wrap the output in its marker pair,
325
- * and open the ledger binding. Returns a string (sync resolve), a
326
- * marker-wrapped `{ t, h, p }` template (NotReady escalation — markers
327
- * ride the template so the retry's splice lands inside them), an
328
- * UNMARKED string/template (latched: slot positions, impure
329
- * evaluations), or null when interception is off for this evaluation.
330
- */
331
- content(hole: any): any;
332
- /** The shared id counter — `ssr()` mints an attr address at injection
333
- * time, before its capture completes. */
334
- mint(): number;
335
- /** Whether interception may arm at the current evaluation point —
336
- * `ssr()` asks before opening an attr capture (the `data-lha`
337
- * injection must not touch out-of-scope bytes; content holes are
338
- * gated inside `content()` itself). */
339
- active(): boolean;
340
- /**
341
- * Register an element's attr-hole capture (built by `ssr()`'s in-tag
342
- * scan): the tag's attribute area as alternating static strings and
343
- * re-runnable parts (`{ f }` thunks, `{ g, i }` group positions). Sweeps
344
- * rebuild the text, equality-gate against the baseline, and ship
345
- * changes as an element-keyed `attr` chunk. Names that vanish between
346
- * rebuilds ride an explicit `removed` list — the server holds the
347
- * previous text, so the client never tracks name history.
348
- */
349
- attr(cap: any): void;
350
- };
351
- export declare function ssr(template: string[] | string, ...nodes: any[]): {
352
- t: string;
353
- };
354
- export declare function ssrClassName(value: string | {
355
- [k: string]: boolean;
356
- } | Array<any>): string;
357
- export declare function ssrStyle(value: string | {
358
- [k: string]: string;
359
- }): string;
360
- export declare function ssrStyleProperty(name: string, value: any): string;
361
- export declare function ssrElement(name: string, props: any, children: any, needsId: boolean): {
362
- t: string;
363
- };
364
- export declare function ssrAttribute(key: string, value: any): string;
365
- export declare function ssrHydrationKey(): string;
366
- export declare const CLAIM_PROP: unique symbol;
367
- export declare const CLAIMS_STREAM = 1;
368
- export declare const CLAIMS_DOCUMENT = 2;
369
- export declare function ssrClaim(map: any): string;
370
- export declare function ssrSelectValues(): void;
371
- export declare function resolveSSRSelectValues(html: any): any;
372
- export declare function escape(s: any, attr?: boolean): any;
373
- export declare function getHydrationKey(): string | undefined;
374
- export declare function applyRef(r: ((element: any) => void) | ((element: any) => void)[], element: any): void;
375
- export declare function generateHydrationScript(options?: {
376
- nonce?: string;
377
- eventNames?: string[];
378
- }): string;
379
- export declare function resolveSSRNode(node: any, result?: any, top?: boolean): any;
380
- export declare const RequestContext: unique symbol; /**
381
- * The current request event, when called on the server inside a request
382
- * scope (established by `provideRequestEvent` from `@solidjs/web/storage`
383
- * or by the framework). Undefined on the client and outside a request.
384
- * Read it above `await` boundaries in partially-polyfilled environments.
385
- */
386
- export declare function getRequestEvent(): RequestEvent | undefined;
387
- export declare function createResponseStub(): ResponseStub;
388
- export declare function createRequestEvent<T extends object = {}>(request: Request, init?: T): RequestEvent & {
389
- response: ResponseStub;
390
- } & T;
391
- export declare function commitResponseStub(stub: ResponseStub, options?: {
392
- allowLateLocation?: boolean;
393
- }): ResponseStub;
394
- export declare function getExpectedRedirectStatus(response: ResponseStub): number;
395
- export declare function commitEventResponse(response: Response, event?: RequestEvent): Response;
396
- export declare function createSSRResponse(result: string, event: RequestEvent | undefined, options?: SSRResponseOptions): Response;
397
- export declare function createSSRResponse(result: {
398
- pipe(writable: {
399
- write: (v: string) => void;
400
- end: () => void;
401
- }): void;
402
- }, event: RequestEvent | undefined, options?: SSRResponseOptions): Promise<Response>;
403
- export declare function composeMiddleware(middlewares: FetchMiddleware[]): (request: Request, next: (request?: Request) => Response | Promise<Response>) => Promise<Response>;
404
- export declare function registerElementClaim(handler: (element: Element) => void): () => void;
405
- export declare function claimElement<T extends Element>(node: T): T;
406
- export declare function claimElementTree<T extends Node>(root: T): T;
407
- export { notSup as style, notSup as insert, notSup as spread, notSup as delegateEvents, notSup as registerDelegatedRoot, notSup as unregisterDelegatedRoot, notSup as registerDelegatedContainer, notSup as unregisterDelegatedContainer, notSup as getDelegatedRoot, notSup as dynamicProperty, notSup as setAttribute, notSup as setAttributeNS, notSup as addEvent, notSup as render, notSup as template, notSup as setProperty, notSup as className, notSup as assign, notSup as hydrate, notSup as getNextElement, notSup as getNextMatch, notSup as getNextMarker, notSup as runHydrationEvents, notSup as ref, notSup as setStyleProperty, notSup as acquireAsset };
408
- declare function notSup(): void;