import { PackageJson } from "../../../"; import { IPluginInfo, IFlattenedPlugin, ISiteConfig } from "./types"; interface IApi { version?: string; } export interface IEntry { exportName: string; pluginName: string; pluginVersion: string; api?: IApi; } export type ExportType = "node" | "browser" | "ssr"; type IEntryMap = { [exportType in ExportType]: Array; }; export type ICurrentAPIs = { [exportType in ExportType]: Array; }; export declare function handleBadExports({ currentAPIs, badExports, }: { currentAPIs: ICurrentAPIs; badExports: { [api in ExportType]: Array; }; }): Promise; export declare function validateConfigPluginsOptions(config: ISiteConfig | undefined, rootDir: string): Promise; /** * Identify which APIs each plugin exports */ export declare function collatePluginAPIs({ currentAPIs, flattenedPlugins, rootDir, }: { currentAPIs: ICurrentAPIs; flattenedPlugins: Array>; rootDir: string; }): Promise<{ flattenedPlugins: Array; badExports: IEntryMap; }>; export declare const handleMultipleReplaceRenderers: ({ flattenedPlugins, }: { flattenedPlugins: Array; }) => Array; export declare function warnOnIncompatiblePeerDependency(name: string, packageJSON: PackageJson): void; export {};