import { BasicConfig, ContainerContextType, FormContextType, FormItemContextType, IteratorContextType, RCREContextType, runTimeType, TriggerContextType } from '../../types'; /** * 把RCRE的filter函数变量注入到context中 * * @param {Object} context */ export declare const injectFilterIntoContext: (context: object) => void; export declare function isPromise(object: any): boolean; /** * Immutable版本的setWith * 自动依据路径,对访问路径进行浅拷贝吗,以防止通过多级路径访问对象时,无法保存原先对象引用副本 * let object = { inner: {test : 1}, other: {foo: 1} }; * let copy = setWith(object, 'inner.test', 2); * * object === copy // false * object.inner === copy.inner // false * object.inner.test // 1 * copy.inner.test // 2 * object.other === copy.other // true * * * 对于数字路径的处理: * setWith({}, name.0.1, 'test') ==> { name: {0: 1: 'test'} } * setWith({}, name[0][1], 'test') ==> { name: [undefined, ['test']]} * * @param obj * @param path * @param value */ export declare function setWith(obj: T, path: string, value: any): T; /** * 拼装key * @param keys */ export declare function combineKeys(...keys: any[]): any; export declare function deleteWith(obj: T, path: string): T; export declare function getRuntimeContext(containerContext: ContainerContextType, rcreContext: RCREContextType, otherContext?: { iteratorContext?: IteratorContextType; triggerContext?: TriggerContextType; formContext?: FormContextType; formItemContext?: FormItemContextType; }): runTimeType; /** * 清理runTime变量,谨防内存泄露 */ export declare function recycleRunTime(runTime: runTimeType): null; export declare function getActiveElement(doc?: Document): Element | null;