import { NextBuildContext } from './build-context';
import { TurbotraceContext } from './webpack/plugins/next-trace-entrypoints-plugin';
import * as pagesPluginModule from './webpack/plugins/pages-manifest-plugin';
export declare function workerMain(workerData: {
    compilerIdx?: number;
    buildContext: typeof NextBuildContext;
}): Promise<{
    duration: number;
    turbotraceContext?: TurbotraceContext | undefined;
    serializedFlightMaps?: {
        injectedClientEntries?: any;
        serverModuleIds?: any;
        edgeServerModuleIds?: any;
        asyncClientModules?: any;
        serverActions?: any;
        serverCSSManifest?: any;
        edgeServerCSSManifest?: any;
    } | undefined;
    serializedPagesManifestEntries?: {
        edgeServerPages?: pagesPluginModule.PagesManifest | undefined;
        nodeServerPages?: pagesPluginModule.PagesManifest | undefined;
        edgeServerAppPaths?: pagesPluginModule.PagesManifest | undefined;
        nodeServerAppPaths?: pagesPluginModule.PagesManifest | undefined;
    } | undefined;
}>;
export declare function webpackBuild(): Promise<{
    duration: number;
    turbotraceContext?: TurbotraceContext | undefined;
    serializedFlightMaps?: {
        injectedClientEntries?: any;
        serverModuleIds?: any;
        edgeServerModuleIds?: any;
        asyncClientModules?: any;
        serverActions?: any;
        serverCSSManifest?: any;
        edgeServerCSSManifest?: any;
    } | undefined;
    serializedPagesManifestEntries?: {
        edgeServerPages?: pagesPluginModule.PagesManifest | undefined;
        nodeServerPages?: pagesPluginModule.PagesManifest | undefined;
        edgeServerAppPaths?: pagesPluginModule.PagesManifest | undefined;
        nodeServerAppPaths?: pagesPluginModule.PagesManifest | undefined;
    } | undefined;
} | {
    duration: number;
    turbotraceContext: any;
}>;
