declare class ComponentsRegistry { private customComponentLazyMap; private componentMap; private overrideMap; private lazyMap; constructor(); /** * Registers the component with core so that renderer can * get the right component while rendering. * * @param componentName Name of the component eq., Currency * @param component component object example * { * component: "Currency", * scripts: ["components/Currency/index.js"] * } * @example PCore.getComponentsRegistry().register(componentName, component) * PCore.getComponentsRegistry().register("Currency", { * component: "Currency", * scripts: ["components/Currency/index.js"] * }); * * @memberof ComponentsRegistry */ register(componentName: string, component: object): void; /** * Registers the component with core so that renderer can * get the right component while rendering. * * @param componentName Name of the component eq., Currency * @param component component object example * { * component: "Currency", * scripts: ["components/Currency/index.js"] * } * @example PCore.getComponentsRegistry().register(componentName, component) * PCore.getComponentsRegistry().register("Currency", { * component: "Currency", * scripts: ["components/Currency/index.js"] * }); * * @memberof ComponentsRegistry */ registerLazyMap(componentName: string, component: object): void; /** * Registers the component with core so that renderer can * get the right component while rendering. * * @param componentName Name of the component eq., Currency * @param component component object example * { * component: "Currency", * scripts: ["components/Currency/index.js"] * } * @example PCore.getComponentsRegistry().register(componentName, component) * PCore.getComponentsRegistry().register("Currency", { * component: "Currency", * scripts: ["components/Currency/index.js"] * }); * * @memberof ComponentsRegistry */ registerCustomComponentLazyMap(componentName: string, component: object): void; /** * Gets the component object registered with core. * * @param componentName Name of the component eq., Currency * @example PCore.getComponentsRegistry().getComponent(componentName) * const component = PCore.getComponentsRegistry().getComponent("Currency"); * @returns component object example * { * component: "Currency", * scripts: ["components/Currency/index.js"] * } * @memberof ComponentsRegistry */ getComponent(componentName: string): { [key: string]: any; }; /** * Gets the component object registered with core. * * @param componentName Name of the component eq., Currency * @example PCore.getComponentsRegistry().getComponent(componentName) * const component = PCore.getComponentsRegistry().getComponent("Currency"); * @returns component object example * { * component: "Currency", * scripts: ["components/Currency/index.js"] * } * @memberof ComponentsRegistry */ getLazyComponent(componentName: string): object; /** * Gets the component object registered with core. * * @param componentName Name of the component eq., Currency * @example PCore.getComponentsRegistry().getComponent(componentName) * const component = PCore.getComponentsRegistry().getComponent("Currency"); * @returns component object example * { * component: "Currency", * scripts: ["components/Currency/index.js"] * } * @memberof ComponentsRegistry */ getCustomComponent(componentName: string): object; /** * Merges the componentMap to registry. * * @example PCore.getComponentsRegistry().mergeComponentsMap(componentsMap) * const component = PCore.getComponentsRegistry().mergeComponentsMap(reactComponentsMap); * @param componentsMap object which holds component definitions eq., * const reactComponentsMap = { * Renderer: { * renderer: "PegaReactRenderer", * scripts: ["renderer/react_renderer.js"] * }, * Currency: { * component: "Currency", * scripts: ["components/Currency/index.js"] * } * } * @memberof ComponentsRegistry */ mergeComponentsMap(componentsMap?: object): void; /** * Merges override map * @param overrideMap object that holds override map. * @memberof ComponentsRegistry */ mergeOverrideMap(overrideMap?: object): void; /** * returns override map * @memberof ComponentsRegistry */ getOverrideMap(): { [key: string]: any; }; /** * returns Lazy map * @memberof ComponentsRegistry */ getLazyMap(): { [key: string]: any; }; } declare const _default: ComponentsRegistry; export default _default;