UNPKG

1.47 kBTypeScriptView Raw
1import { PHASE_DEVELOPMENT_SERVER, PHASE_EXPORT, PHASE_PRODUCTION_BUILD } from '../../next-server/lib/constants';
2declare type EventCliSessionStarted = {
3 nextVersion: string;
4 nodeVersion: string;
5 cliCommand: string;
6 isSrcDir: boolean | null;
7 hasNowJson: boolean;
8 isCustomServer: boolean | null;
9 hasNextConfig: boolean;
10 buildTarget: string;
11 hasWebpackConfig: boolean;
12 hasBabelConfig: boolean;
13 basePathEnabled: boolean;
14 i18nEnabled: boolean;
15 imageEnabled: boolean;
16 locales: string | null;
17 localeDomainsCount: number | null;
18 localeDetectionEnabled: boolean | null;
19 imageDomainsCount: number | null;
20 imageSizes: string | null;
21 imageLoader: string | null;
22 trailingSlashEnabled: boolean;
23 reactStrictMode: boolean;
24 webpackVersion: number | null;
25};
26declare type NextConfigurationPhase = typeof PHASE_DEVELOPMENT_SERVER | typeof PHASE_PRODUCTION_BUILD | typeof PHASE_EXPORT;
27export declare function eventCliSession(phase: NextConfigurationPhase, dir: string, event: Omit<EventCliSessionStarted, 'nextVersion' | 'nodeVersion' | 'hasNextConfig' | 'buildTarget' | 'hasWebpackConfig' | 'hasBabelConfig' | 'basePathEnabled' | 'i18nEnabled' | 'imageEnabled' | 'locales' | 'localeDomainsCount' | 'localeDetectionEnabled' | 'imageDomainsCount' | 'imageSizes' | 'imageLoader' | 'trailingSlashEnabled' | 'reactStrictMode'>): {
28 eventName: string;
29 payload: EventCliSessionStarted;
30}[];
31export {};