import * as StateManager from '../store/state/state-manager'; import type { Action } from '../store/state/state-manager'; import type { DxAPIResponseObject, ActionPayloadDataObj } from './types'; export declare const DXAPI_RESPONSE_DATA_READ_PATHS: { CASE_INFO: string; CASE_CLASS_NAME: string; NEXT_ASSIGNMENT_INFO_ID: string; ASSIGNMENTS: string; CASE_INFO_ID: string; CASE_FIRST_FLOW_ACTION_NAME: string; CASE_FIRST_ASSIGNMENT_ID: string; }; export declare const getContainerName: (actionType: Action["type"], actionInPayload: Action["payload"]) => any; export declare const getContainerNameFromContainerItemID: (containerItemID: string) => string; export declare const isWorkAreaContainer: (containerName: string) => boolean; export declare const isModalContainer: (containerName: string) => boolean; export declare const isActivateContainerItemActionType: (actionType: Action["type"]) => actionType is "ACTIVATE_CONTAINER_ITEM"; export declare const getNextAssignmentInfoID: (dxApiResponse: DxAPIResponseObject) => any; export declare const isErrorActionType: (actionType: Action["type"]) => actionType is "ERROR"; export declare const hasErrorActionType: (actionsOut: Action[]) => StateManager.Action | undefined; export declare const getCaseInfo: (dxApiResponse: DxAPIResponseObject) => any; export declare const hasAssignments: (dxApiResponse: DxAPIResponseObject) => any; export declare const getDisplayCaseID: (caseID?: string) => string | undefined; export declare const getCaseClassName: (dxApiResponse: DxAPIResponseObject) => any; export declare const isNextStepInCreateStage: (dxApiResponse: DxAPIResponseObject) => boolean; export declare const getCaseInfoID: (dxApiResponse: DxAPIResponseObject) => any; export declare const getCaseFirstFlowActionID: (dxApiResponse: DxAPIResponseObject) => any; export declare const getCaseFirstAssignmentID: (dxApiResponse: DxAPIResponseObject) => any; export declare const addActionToRemoveContainerItem: (actionsOut: Action[], options: { removeActionPayload: Action["payload"]; target: string | null; }) => void; /** * this function helps to check whether parent and child container data context referring to same work item or not * @private * @param childContainerItemID - child container item id * @returns - true --> if both container data context refers to same work item */ export declare const isParentAndChildContextHoldingSameItem: (childContainerItemID: string | null) => boolean; export declare const updateKeyAndFlowName: (sourceObject: object, dxApiResponse: DxAPIResponseObject, options?: { skipFlowNameUpdate?: boolean; }) => void; /** * this function helps to set last submit time property in context_data * @param data - data object to which refresh properties will get added * @param actionInPayload - ncoming action payload from public action api * @private */ export declare const setLastRefreshTimeProperty: (data: ActionPayloadDataObj, actionInPayload: Action["payload"]) => void; /** * this function handles the promise logic * @private * @param actionsOut - actions which will get dispatched out * @param actionMgrID - action manager id * @param errorDetails - that gives the type of information about the error * @returns - returns 'reject' or 'resolve' */ export declare const promiseHandler: (actionsOut: Action[], actionMgrID: number, errorDetails?: object) => string; /** * this function tests whether given case is coexistence or not * @private * @param className - classname of the case * @returns - returns boolean if case is coexistence or not */ export declare const isCoexistenceCase: (className: string) => boolean; /** * returns flag whether the app built on Theme Cosmos or not * @public * @static */ export declare const canLaunchCaseInModal: () => boolean; export declare const addActionToLoadCaseSummaryView: (actionsOut: Action[], actionInPayload: Action["payload"], options: { caseClassName: string; }) => void; export declare const deferCaseSummaryViewUpdate: (chainedData: { response: DxAPIResponseObject; actionInPayload: Action["payload"]; }, actionsOut: Action[]) => void; export declare const getCurrentCaseViewMode: (context: string) => string;