export type SpecifierMap = Record; export type ScopesMap = Record; export type IntegrityMap = Record; export interface ImportMap { imports?: SpecifierMap; scopes?: ScopesMap; /** * Subresource Integrity metadata, mapping module URLs to integrity hashes. * Part of the Import Maps specification; ignored by browsers that do not * support it. */ integrity?: IntegrityMap; } export type ImportMapResolver = (specifier: string, parent: string) => string | null;