import type { Action } from '@builder.io/qwik-city'; import type { _deserializeData } from '@builder.io/qwik'; import type { EnvGetter as EnvGetter_2 } from '@builder.io/qwik-city/middleware/request-handler'; import type { FailReturn } from '@builder.io/qwik-city'; import type { Loader as Loader_2 } from '@builder.io/qwik-city'; import type { QwikCityPlan } from '@builder.io/qwik-city'; import type { QwikIntrinsicElements } from '@builder.io/qwik'; import type { Render } from '@builder.io/qwik/server'; import type { RenderOptions } from '@builder.io/qwik/server'; import type { RequestEvent as RequestEvent_2 } from '@builder.io/qwik-city'; import type { RequestHandler as RequestHandler_2 } from '@builder.io/qwik-city/middleware/request-handler'; import type { ResolveSyncValue as ResolveSyncValue_2 } from '@builder.io/qwik-city/middleware/request-handler'; import type { _serializeData } from '@builder.io/qwik'; import type { ValueOrPromise } from '@builder.io/qwik'; import type { _verifySerializable } from '@builder.io/qwik'; /** @public */ export declare class AbortMessage { } /** @public */ export declare type CacheControl = CacheControlOptions | number | 'day' | 'week' | 'month' | 'year' | 'no-cache' | 'immutable' | 'private'; /** @public */ declare interface CacheControlOptions { /** * The max-age=N response directive indicates that the response remains fresh until N seconds * after the response is generated. Note that max-age is not the elapsed time since the response * was received; it is the elapsed time since the response was generated on the origin server. So * if the other cache(s) — on the network route taken by the response — store the response for 100 * seconds (indicated using the Age response header field), the browser cache would deduct 100 * seconds from its freshness lifetime. */ maxAge?: number; /** * The s-maxage response directive also indicates how long the response is fresh for (similar to * max-age) — but it is specific to shared caches, and they will ignore max-age when it is * present. */ sMaxAge?: number; /** * The stale-while-revalidate response directive indicates that the cache could reuse a stale * response while it revalidates it to a cache. */ staleWhileRevalidate?: number; /** * The stale-if-error response directive that indicates if a stale response can be used when * there's an error from the origin. */ staleIfError?: number; /** * The no-store response directive indicates that any caches of any kind (private or shared) * should not store this response. */ noStore?: boolean; /** * The no-cache response directive indicates that the response can be stored in caches, but the * response must be validated with the origin server before each reuse, even when the cache is * disconnected from the origin server. */ noCache?: boolean; /** * The public response directive indicates that the response can be stored in a shared cache. * Responses for requests with Authorization header fields must not be stored in a shared cache; * however, the public directive will cause such responses to be stored in a shared cache. */ public?: boolean; /** * The private response directive indicates that the response can be stored only in a private * cache (e.g. local caches in browsers). You should add the private directive for * user-personalized content, especially for responses received after login and for sessions * managed via cookies. If you forget to add private to a response with personalized content, then * that response can be stored in a shared cache and end up being reused for multiple users, which * can cause personal information to leak. */ private?: boolean; /** * The immutable response directive indicates that the response will not be updated while it's * fresh. * * A modern best practice for static resources is to include version/hashes in their URLs, while * never modifying the resources — but instead, when necessary, updating the resources with newer * versions that have new version-numbers/hashes, so that their URLs are different. That's called * the cache-busting pattern. */ immutable?: boolean; } /** @public */ declare type CacheControlTarget = 'Cache-Control' | 'CDN-Cache-Control' | 'Cloudflare-CDN-Cache-Control' | 'Vercel-CDN-Cache-Control' | '~ANY-OTHER-STRING' | (string & {}); /** @public */ export declare interface ClientConn { ip?: string; country?: string; } /** * HTTP Client Error Status Codes Status codes in the 4xx range indicate that the client's request * was malformed or invalid and could not be understood or processed by the server. */ declare type ClientErrorCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 499; /** @public */ declare interface ContentHeading { readonly text: string; readonly id: string; readonly level: number; } /** @public */ declare interface ContentMenu { readonly text: string; readonly href?: string; readonly items?: ContentMenu[]; } declare type ContentModule = PageModule | LayoutModule; declare type ContentModuleHead = DocumentHead | ResolvedDocumentHead; /** @public */ export declare interface Cookie { /** Gets a `Request` cookie header value by name. */ get(name: string): CookieValue | null; /** Gets all `Request` cookie headers. */ getAll(): Record; /** Checks if the `Request` cookie header name exists. */ has(name: string): boolean; /** Sets a `Response` cookie header using the `Set-Cookie` header. */ set(name: string, value: string | number | Record, options?: CookieOptions): void; /** * Appends a `Response` cookie header using the `Set-Cookie` header. * * The difference between `set()` and `append()` is that if the specified header already exists, * `set()` will overwrite the existing value with the new one, whereas `append()` will append the * new value onto the end of the set of values. */ append(name: string, value: string | number | Record, options?: CookieOptions): void; /** Deletes cookie value by name using the `Response` cookie header. */ delete(name: string, options?: Pick): void; /** Returns an array of all the set `Response` `Set-Cookie` header values. */ headers(): string[]; } /** @public */ /** * https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie * * @public */ export declare interface CookieOptions { /** * Defines the host to which the cookie will be sent. If omitted, this attribute defaults to the * host of the current document URL, not including subdomains. */ domain?: string; /** * Indicates the maximum lifetime of the cookie as an HTTP-date timestamp. If both `expires` and * `maxAge` are set, `maxAge` has precedence. */ expires?: Date | string; /** * Forbids JavaScript from accessing the cookie, for example, through the `document.cookie` * property. */ httpOnly?: boolean; /** * Indicates the number of seconds until the cookie expires. A zero or negative number will expire * the cookie immediately. If both `expires` and `maxAge` are set, `maxAge` has precedence. You * can also use the array syntax to set the max-age using minutes, hours, days or weeks. For * example, `{ maxAge: [3, "days"] }` would set the cookie to expire in 3 days. */ maxAge?: number | [number, 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks']; /** * Indicates the path that must exist in the requested URL for the browser to send the Cookie * header. */ path?: string; /** * Controls whether or not a cookie is sent with cross-site requests, providing some protection * against cross-site request forgery attacks (CSRF). */ sameSite?: 'strict' | 'lax' | 'none' | 'Strict' | 'Lax' | 'None' | boolean; /** * Indicates that the cookie is sent to the server only when a request is made with the `https:` * scheme (except on localhost) */ secure?: boolean; } /** @public */ export declare interface CookieValue { value: string; json: () => T; number: () => number; } /** @public */ export declare type DeferReturn = () => Promise; /** @public */ declare type DocumentHead = DocumentHeadValue | ((props: DocumentHeadProps) => DocumentHeadValue); /** @public */ declare interface DocumentHeadProps extends RouteLocation { readonly head: ResolvedDocumentHead; readonly withLocale: (fn: () => T) => T; readonly resolveValue: ResolveSyncValue_2; } /** @public */ declare interface DocumentHeadValue = Record> { /** Sets `document.title`. */ readonly title?: string; /** * Used to manually set meta tags in the head. Additionally, the `data` property could be used to * set arbitrary data which the `` component could later use to generate `` tags. */ readonly meta?: readonly DocumentMeta[]; /** Used to manually append `` elements to the ``. */ readonly links?: readonly DocumentLink[]; /** Used to manually append `