hatch-surf/node_modules/next/dist/server/async-storage/request-store.d.ts
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

48 lines
2.5 KiB
TypeScript

import type { BaseNextRequest, BaseNextResponse } from '../base-http';
import type { RequestStore } from '../app-render/work-unit-async-storage.external';
import type { RenderOpts } from '../app-render/types';
import type { NextRequest } from '../web/spec-extension/request';
import type { __ApiPreviewProps } from '../api-utils';
import type { ServerComponentsHmrCache } from '../response-cache';
import type { RenderResumeDataCache } from '../resume-data-cache/resume-data-cache';
import type { Params } from '../request/params';
import type { ImplicitTags } from '../lib/implicit-tags';
import type { OpaqueFallbackRouteParams } from '../request/fallback-params';
export type WrapperRenderOpts = Partial<Pick<RenderOpts, 'onUpdateCookies'>> & {
previewProps?: __ApiPreviewProps;
};
type RequestContext = RequestResponsePair & {
/**
* The URL of the request. This only specifies the pathname and the search
* part of the URL. This is only undefined when generating static paths (ie,
* there is no request in progress, nor do we know one).
*/
url: {
/**
* The pathname of the requested URL.
*/
pathname: string;
/**
* The search part of the requested URL. If the request did not provide a
* search part, this will be an empty string.
*/
search?: string;
};
phase: RequestStore['phase'];
renderOpts?: WrapperRenderOpts;
isHmrRefresh?: boolean;
serverComponentsHmrCache?: ServerComponentsHmrCache;
implicitTags: ImplicitTags;
};
type RequestResponsePair = {
req: BaseNextRequest;
res: BaseNextResponse;
} | {
req: NextRequest;
res: undefined;
};
export declare function createRequestStoreForRender(req: RequestContext['req'], res: RequestContext['res'], url: RequestContext['url'], rootParams: Params, implicitTags: RequestContext['implicitTags'], onUpdateCookies: RenderOpts['onUpdateCookies'], previewProps: WrapperRenderOpts['previewProps'], isHmrRefresh: RequestContext['isHmrRefresh'], serverComponentsHmrCache: RequestContext['serverComponentsHmrCache'], renderResumeDataCache: RenderResumeDataCache | null, fallbackParams: OpaqueFallbackRouteParams | null): RequestStore;
export declare function createRequestStoreForAPI(req: RequestContext['req'], url: RequestContext['url'], implicitTags: RequestContext['implicitTags'], onUpdateCookies: RenderOpts['onUpdateCookies'], previewProps: WrapperRenderOpts['previewProps']): RequestStore;
export declare function synchronizeMutableCookies(store: RequestStore): void;
export {};