import { WebpackOptionsNormalized } from 'webpack'; import { moduleFederationPlugin } from '@module-federation/sdk'; export type EntryStaticNormalized = Awaited any>>>; export type EntryDescriptionNormalized = EntryStaticNormalized[keyof EntryStaticNormalized]; export type ContainerOptionsFormat = (string | Record)[] | Record; export type NormalizeSimple = (value: string | string[], key: string) => R; export type NormalizeOptions = (value: T, key: string) => R; export type ProcessFN = (key: string, normalizedOptions: R) => void; export type ParsedContainerOptions = [string, T][]; export type NormalizedSharedOption = { name: string; version: string; } & moduleFederationPlugin.SharedConfig; export interface NormalizedSharedOptions { [depName: string]: NormalizedSharedOption; }