/** * @description * Exposes APIs to to manager defer loaded components */ import type { DeferLoadComponentObj } from './types'; declare class DeferLoadManager { components: { [contextName: string]: { [uniqueId: string]: DeferLoadComponentObj; }; }; constructor(); /** * Checks whether context is initialised or not * @param uniqueId component identifier * @param contextName Component context e.g. app/primary_1 * @returns Returns boolean whether context is initialised or not */ _checkComponent(uniqueId: string, contextName: string): boolean; /** * Initialize component cache with deferred component information * @param viewName The name of the view * @param caseKey case key used for refresh endpoint * @param pageReference Page reference * @param contextName Component context e.g. app/primary_1 * @param uniqueId component identifier */ start(viewName: string, caseKey: string, pageReference: string, contextName: string, uniqueId: string): void; /** * Stops listening to the cascade event * @param uniqueId component identifier * @param contextName Component context e.g. app/primary_1 */ stop(uniqueId: string, contextName: string): void; /** * Removes component from the cache * @param uniqueId component identifier * @param contextName Component context e.g. app/primary_1 */ remove(uniqueId: string, contextName: string): void; /** * Removes component context from cache * @param contextName Component context e.g. app/primary_1 */ removeContext(contextName: string): void; /** * Mark component as cascade enable * @param contextName Component context e.g. app/primary_1 */ enableCascade(contextName: string): void; /** * Activates the component * @param uniqueId component identifier * @param contextName Component context e.g. app/primary_1 */ activate(uniqueId: string, contextName: string): void; /** * Deactivates the component * @param uniqueId component identifier * @param contextName Component context e.g. app/primary_1 */ deactivate(uniqueId: string, contextName: string): void; /** * Refresh all active views associated to the component * @param contextName Component context e.g. app/primary_1 */ refreshActiveComponents(contextName: string): void; /** * Refreshes view associated to the component * @param uniqueId component identifier * @param contextName Component context e.g. app/primary_1 */ refreshComponent(uniqueId: string, contextName: string): void; } declare const _default: DeferLoadManager; export default _default;