import { C11nEnv } from '../interpreter/c11n-env'; import type { DxAPIResponseObject } from '../case/types'; /** * This is used to update rule store with view metadata and loads respective components * @function * @example Example for updateViewResources * PCore.updateViewResources(dxAPIResponse) * * @param dxAPIResponse - An object containing view metadata. */ export declare const updateViewResources: (dxAPIResponse: DxAPIResponseObject) => Promise; /** * This is used to fetch view metadata from rule store * @function * @example Example for fetchViewResources * const viewMetaData = PCore.fetchViewResources("viewname", getPConnect(), "OPB1HW-MyApp-Work-MyCase"); * * @param viewName - Name of the view rule. * @param c11nEnv - Context object. For example: getPConnect() * @param classID - Class name of the case type * @returns An object containing view metadata */ export declare const fetchViewResources: (viewName: string, c11nEnv: C11nEnv, classID: string) => { type: string; config?: Record; }; /** * Refreshes a view by name and class. Finds the active container displaying the view, * then calls refreshCaseView to fetch the latest metadata from the server and update the store. * * @param viewName - Name of the view to refresh (e.g. "Create") * @param classID - Class ID of the case type (e.g. "OZPWC7-Enrollment-Work-Test") * @param contextName - Optional data context to use directly (e.g. "app/primary_1"). If provided, skips container lookup. * @returns A Promise that resolves when the refresh completes, or rejects if the view context is not found. * * @example * PCore.getViewResources().refreshViewByName('Create', 'OZPWC7-Enrollment-Work-Test'); * PCore.getViewResources().refreshViewByName('Create', '', 'app/primary_1'); * @private */ export declare const refreshViewByName: (viewName: string, classID?: string, contextName?: string) => Promise;