/// import type { QwikManifest } from './optimizer.js'; import { ResolvedManifest } from './optimizer.js'; import type { ServerQwikManifest } from './optimizer.js'; import type { SnapshotResult } from './core-internal.js'; import type { StreamWriter } from './core-internal.js'; import type { SymbolMapperFn } from './optimizer.js'; /** @public */ declare interface DevJSX { fileName: string; lineNumber: number; columnNumber: number; stack?: string; } /** * Any function taking a props object that returns JSXOutput. * * The `key`, `flags` and `dev` parameters are for internal use. * * @public */ declare type FunctionComponent

= { renderFn(props: P, key: string | null, flags: number, dev?: DevJSX): JSXOutput; }['renderFn']; /** * Provides the `backpatch-executor.js` executor script as a string. * * @public */ export declare function getQwikBackpatchExecutorScript(opts?: { debug?: boolean; }): string; /** * Provides the `qwikloader.js` file as a string. Useful for tooling to inline the qwikloader script * into HTML. * * @public */ export declare function getQwikLoaderScript(opts?: { debug?: boolean; }): string; /** * Provides the `qwik-prefetch-service-worker.js` file as a string. Useful for tooling to inline the * qwik-prefetch-service-worker script into HTML. * * @public */ export declare function getQwikPrefetchWorkerScript(opts?: { debug?: boolean; }): string; /** @public */ export declare interface InOrderAuto { strategy: 'auto'; maximumInitialChunk?: number; maximumChunk?: number; } /** @public */ declare interface InOrderDirect { strategy: 'direct'; } /** @public */ export declare interface InOrderDisabled { strategy: 'disabled'; } /** @public */ export declare type InOrderStreaming = InOrderAuto | InOrderDisabled | InOrderDirect; /** @public */ declare type JSXChildren = string | number | boolean | null | undefined | Function | RegExp | JSXChildren[] | Promise | Signal | JSXNode; /** * A JSX Node, an internal structure. You probably want to use `JSXOutput` instead. * * @public */ declare interface JSXNode { type: T; props: T extends FunctionComponent ? P : Record; children: JSXChildren | null; key: string | null; dev?: DevJSX; } /** * Any valid output for a component * * @public */ declare type JSXOutput = JSXNode | string | number | boolean | null | undefined | JSXOutput[]; /** @public */ export declare type OutOfOrderStreaming = boolean; /** @public */ export declare interface PrefetchResource { url: string; imports: PrefetchResource[]; } /** @public */ export declare interface PreloaderOptions { /** * Maximum number of preload links to add during SSR. These instruct the browser to preload likely * bundles before the preloader script is active. This most likely includes the core and the * preloader script itself. Setting this to 0 will disable all preload links. * * Preload links can delay LCP, which is a Core Web Vital, but they can improve TTI, which is not * a Core Web Vital but more noticeable to the user. * * Defaults to `0`, so speculative preloading starts once the page is loaded. */ ssrPreloads?: number; /** * Maximum number of simultaneous preload links that the preloader will maintain. If you set this * higher, the browser will have all JS files in memory sooner, but it will contend with other * resource downloads. Furthermore, if a bundle suddenly becomes more likely, it will have to wait * longer to be preloaded. * * Bundles that reach 100% probability (static imports of other bundles) will always be preloaded * immediately, no limit. * * Defaults to `25` */ maxIdlePreloads?: number; } /** @public */ export declare type QwikLoaderOptions = 'module' | 'inline' | 'never' | { /** @deprecated No longer used. */ include?: 'always' | 'never' | 'auto'; /** @deprecated No longer used. */ position?: 'top' | 'bottom'; }; /** @public */ export declare type Render = RenderToString | RenderToStream; /** @public */ export declare interface RenderOptions extends SerializeDocumentOptions { /** Defaults to `true` */ snapshot?: boolean; /** * Specifies the root of the JS files of the client build. Setting a base, will cause the render * of the `q:base` attribute in the `q:container` element. */ base?: string | ((options: RenderOptions) => string); /** Language to use when rendering the document. */ locale?: string | ((options: RenderOptions) => string); /** * Specifies how the Qwik Loader is included in the document. This enables interactivity and lazy * loading. * * `module`: Use a `