This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/next/dist/server/app-render/action-handler.d.ts
2025-01-11 09:54:09 +03:00

35 lines
1.3 KiB
TypeScript

/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
import type { SizeLimit } from '../../../types';
import type { RequestStore } from '../../client/components/request-async-storage.external';
import type { AppRenderContext, GenerateFlight } from './app-render';
import type { AppPageModule } from '../../server/future/route-modules/app-page/module';
import RenderResult from '../render-result';
import type { StaticGenerationStore } from '../../client/components/static-generation-async-storage.external';
type ServerModuleMap = Record<string, {
id: string;
chunks: string[];
name: string;
} | undefined>;
export declare function handleAction({ req, res, ComponentMod, serverModuleMap, generateFlight, staticGenerationStore, requestStore, serverActions, ctx, }: {
req: IncomingMessage;
res: ServerResponse;
ComponentMod: AppPageModule;
serverModuleMap: ServerModuleMap;
generateFlight: GenerateFlight;
staticGenerationStore: StaticGenerationStore;
requestStore: RequestStore;
serverActions?: {
bodySizeLimit?: SizeLimit;
allowedOrigins?: string[];
};
ctx: AppRenderContext;
}): Promise<undefined | {
type: 'not-found';
} | {
type: 'done';
result: RenderResult | undefined;
formState?: any;
}>;
export {};