import type { IIntegrityPath } from '@microsoft/sp-module-interfaces'; /** * Stores the address for each module by its normalized name. * This is used for SystemJS to know how to locate each module. */ export default class AddressStore { /** * Map from normalized name to address */ private static readonly _addressMap; private static readonly _reverseAddressMap; /** * Returns an address for a module, given its normalized name. * @param normalizedName - Normalized name */ static tryGetAddress(normalizedName: string): IIntegrityPath | undefined; /** * Returns the normalized name for a given address. * If the address hasn't been set in the AddressStore, it returns undefined * @param integrityPath - Address */ static getNormalizedName(integrityPath: IIntegrityPath): string | undefined; /** * Set a mapping from a module's normalized name to the module address. * * @remarks * If the address has been set for a previous module's normalized name, when searching for that address * the original module's normalized name will be returned. * @param normalizedName - Module normalized name * @param integrityPath - Module address */ static set(normalizedName: string, integrityPath: IIntegrityPath): void; } //# sourceMappingURL=AddressStore.d.ts.map