import { IObjExt } from "./type.js"; /** * Determines whether value is an element of array arr, * only determine the same value with the element, do not determine the type * * @param {*} value * @param {any[]} arr * @returns {*} {boolean} */ export declare function inArray(value: any, arr: any[]): boolean; /** * Removes the specified index element from the array * * @param {any[]} arr * @param {number} index * @returns {*} {any[]} */ export declare function arrRemove(arr: any[], index: number): any[]; /** * The object obj prototype instance conversion to organize the data structure stored in the object, * access to this object in the v8 engine will be faster * @param {IObjExt} obj */ export declare function toFastProperties(obj: IObjExt): void; /** * Copy the source, deep deep to true depth copy * * @param {IObjExt} source * @param {boolean} [deep=false] * @returns {*} {IObjExt} */ export declare function clone(source: IObjExt, deep?: boolean): IObjExt; /** * So that the target object inherits the source, * deep depth is true depth inheritance * * @param {IObjExt} source * @param {IObjExt} target * @param {boolean} [deep=false] * @returns {*} {IObjExt} */ export declare function extendObj(source: IObjExt, target: IObjExt, deep?: boolean): IObjExt; /** * Short for hasOwnProperty * * @export * @param {IObjExt} obj * @param {string} property * @returns {*} {boolean} */ export declare function hasOwn(obj: IObjExt, property: string): boolean; /** * Short for Object.defineProperty, * the property is getter when setter is false * * @param {IObjExt} obj * @param {string} property * @param {*} value * @param {boolean} [setter=false] * @returns {*} */ export declare function defineProp(obj: IObjExt, property: string, value: any, setter?: boolean): void;