import type { CssImports, ClientComponentImports } from '../loaders/next-flight-client-entry-loader';
import { webpack } from 'next/dist/compiled/webpack/webpack';
interface Options {
    dev: boolean;
    appDir: string;
    isEdgeServer: boolean;
}
export declare const injectedClientEntries: Map<any, any>;
export declare const serverModuleIds: Map<string, string | number>;
export declare const edgeServerModuleIds: Map<string, string | number>;
export declare class FlightClientEntryPlugin {
    dev: boolean;
    appDir: string;
    isEdgeServer: boolean;
    constructor(options: Options);
    apply(compiler: webpack.Compiler): void;
    createClientEntries(compiler: any, compilation: any): Promise<void>;
    collectComponentInfoFromDependencies({ entryRequest, compilation, dependency, clientEntryDependencyMap, }: {
        entryRequest: string;
        compilation: any;
        dependency: any;
        clientEntryDependencyMap?: Record<string, any>;
    }): {
        clientImports: ClientComponentImports;
        cssImports: CssImports;
        actionImports: [string, string[]][];
    };
    injectClientEntryAndSSRModules({ compiler, compilation, entryName, clientImports, bundlePath, }: {
        compiler: webpack.Compiler;
        compilation: webpack.Compilation;
        entryName: string;
        clientImports: ClientComponentImports;
        bundlePath: string;
    }): [shouldInvalidate: boolean, addEntryPromise: Promise<void>];
    injectActionEntry({ compiler, compilation, actionPath, actionName, }: {
        compiler: webpack.Compiler;
        compilation: webpack.Compilation;
        actionPath: string;
        actionName: string;
    }): Promise<unknown>;
    addEntry(compilation: any, context: string, dependency: webpack.Dependency, options: webpack.EntryOptions): Promise<any>;
    createAsset(assets: webpack.Compilation['assets']): void;
}
export {};
