import type { C11nEnv } from '../interpreter/c11n-env'; import type { ListActions } from './types'; /** * This function helps in creating the context entry in instructions if it not exists before. * @param c11nEnv - pConnect object for the list. * @param target - target for which the page instruction to be stored */ export declare const createContextEntry: (contextName: string, target: string, pageReference: string) => void; export declare const addPageInstructionReferences: (contextName: string, reference: string) => void; /** * This function helps in retrieving the reference lists for the context passed * @param contextName - name of the context- e.g. app/primary_1 * @returns page instructions * @private */ export declare const getPageInstructionReferences: (contextName: string) => any; /** * This function helps in clearing the reference lists for the context passed * @param contextName - name of the context- e.g. app/primary_1 * @private */ export declare const clearPageInstructionReferences: (contextName: string) => void; /** * This function sets isVisible flag for target related pageInstructions * @param c11nEnv - pConnect object for the list * @param isVisible - isVisible flag * @private */ export declare const setVisibility: (c11nEnv: C11nEnv, isVisible?: boolean) => void; /** * This function helps in retrieving the instruction for the context passed * @param contextName - name of the context- e.g. app/primary_1 * @returns page instructions * @private */ export declare const getInstructions: (contextName: string) => any[]; /** * This function helps in retrieving the changed instruction for the context passed * @param contextName - name of the context- e.g. app/primary_1 * @returns page instructions * @private */ export declare const getChangedInstructions: (contextName: string | null) => any[]; /** * This function helps in clearing the instruction for the context passed * @param contextName - name of the context- e.g. app/primary_1 * @private */ export declare const clearInstructions: (contextName: string) => void; /** * check whether the page-instrcutions dirtyness in the provided context. * @param context * @returns false if no page-instruction is generated else return true * @private */ export declare const isPropertyDirtyPageInstruction: (context: string | null) => boolean; /** * @param c11nEnv - pConnect object for the list. * @param property - reference property of the table * @param propertyNames - list of property names. * @param uniqueField - unique field for the row * @private */ export declare const initDefaultPageInstructions: (c11nEnv: C11nEnv, property: string, propertyNames: string[], uniqueField?: string) => void; /** * This replaces all the existing properties with the object we sent for reference table. * @param c11nEnv - pConnect object for the table * @param property - reference property of the table * @param payload - payload of the property to which it gets replaced * @private */ export declare const replacePage: (c11nEnv: C11nEnv, property: string, payload: object, options?: { skipStateUpdate?: boolean; }) => void; export declare const deletePage: (c11nEnv: C11nEnv, property: string, options?: { skipStateUpdate?: boolean; }) => void; export declare const generatePageInstructionsForNestedPayload: (payload: { [key: string]: any; }, target: string, parentC11Env: C11nEnv) => void; /** * merge page instructions from one context to another context * @param fromContext- context name * @param toContext- context name * @param pageReference- page reference * @param skipStateUpdate- flag to skip updating redux state * @private * @mergeInstructions */ export declare const mergeInstructions: (fromContext: string, toContext: string, pageReference: string, skipStateUpdate: boolean) => void; /** * This function helps in providing entry point to get list action api's * @param c11nEnv - pConnect object for the list * @returns returns an object which contains the utility api's for performing list actions. * @private */ export declare const listActions: (c11nEnv: C11nEnv) => ListActions;