import BroadcastUtils from '../utils/broadcast-utils'; declare class CoexistenceManager { /** * This method is used to activate container item on tab switch in ajax container for coexistence. * @description This exposes the method activate container item on tab switch in ajax container for coexistence. * @example Example for activateContainerItemOnSwitch() * Example can be seen in pzpega_ui_redux_impl in Infinity * PCore.getCoexistenceManager().activateContainerItemOnSwitch(key); * @param key caseID of the work item to activate * @function */ activateContainerItemOnSwitch(key: string): void; /** * This method is used to remove container item on close in ajax container for coexistence. * @description This exposes the method remove container item on close in ajax container for coexistence. * @example Example for removeContainerItemOnClose() * Example can be seen in pzpega_ui_redux_impl in Infinity * PCore.getCoexistenceManager().removeContainerItemOnClose(key); * @param key caseID of the work item for which to remove container item * @function */ removeContainerItemOnClose(key: string): void; /** * This method is used to show preview in coexistence for constellation cases. * @description This exposes the method to show preview in coexistence for constellation cases. * @example Example for showCasePreview() * Example can be seen in bootstarp-shell.js loadPreview api * PCore.getCoexistenceManager().showCasePreview(key, caseClassName); * @param key caseID of the work item for which preview needs to be shown * @param caseClassName caseClassName of the work item * @function */ showCasePreview(key: string, caseClassName: string): void; /** * This method is used to close the preview in coexistence for constellation cases. * @description This exposes the method to close the open preview panel in coexistence for constellation cases. * @example Example for closeCasePreview() * Example can be seen in pz-cosmos-preview-panel in Infinity * PCore.getCoexistenceManager().closeCasePreview(); * @function */ closeCasePreview(): void; /** * This method is used to check if a constellation case is dirty in coexistence. * @description This exposes the method to check if a constellation case if dirty in coexistence. * @example Example for isFormDirty() * Example can be seen in pzpega_ui_doc_dirtyhandling in Infinity * PCore.getCoexistenceManager().isFormDirty(key); * @param key caseID of the work item for which to check the form is dirty * @returns if form is dirty or not * @function */ isFormDirty(key: string): any; /** * This method is used to get the EventUtils Object * @description This exposes the method to get the EventUtils Object. * @example Example for getEventUtils() * Example can be seen in bootstrap-shell.js * PCore.getCoexistenceManager().getEventUtils().publishConstellationLoadedEvent() * @returns the EventUtils Object * @function */ getEventUtils(): { publishConstellationLoadedEvent: () => void; }; /** * This method is used to get the BroadcastUtils Object * @description This exposes the method to get the BroadcastUtils Object. * @example Example for getBroadcastUtils() * Example can be seen in bootstrap-shell.js * PCore.getCoexistenceManager().getBroadcastUtils().isReverseCoexistenceCaseLoaded() * @returns the BroadcastUtils Object * @function */ getBroadcastUtils(): typeof BroadcastUtils; /** * this function returns whether given case is traditional ui case(coexistence in constellation) or not * @param className - classname of the case * @returns - returns boolean if case is traditional ui case or not * Example * PCore.getCoexistenceManager().isTraditionalUICase('BANK-Hyd-work-Loan') */ isTraditionalUICase(className: string): boolean; } declare const _default: CoexistenceManager; export default _default;