/** * Asserts that the argument passed in is neither undefined nor null. */ export declare function assertIsDefined(arg: T | null | undefined): T; /** * @returns whether the provided parameter is a JavaScript Array or not. */ export declare function isArray(array: any): array is any[]; /** * @returns whether the provided parameter is a JavaScript String or not. */ export declare function isString(str: any): str is string; /** * @returns whether the provided parameter is a JavaScript Array and each element in the array is a string. */ export declare function isStringArray(value: any): value is string[]; /** * * @returns whether the provided parameter is of type `object` but **not** * `null`, an `array`, a `regexp`, nor a `date`. */ export declare function isObject(obj: any): obj is Object; /** * In **contrast** to just checking `typeof` this will return `false` for `NaN`. * @returns whether the provided parameter is a JavaScript Number or not. */ export declare function isNumber(obj: any): obj is number; /** * @returns whether the provided parameter is a JavaScript Boolean or not. */ export declare function isBoolean(obj: any): obj is boolean; /** * @returns whether the provided parameter is undefined. */ export declare function isUndefined(obj: any): obj is undefined; /** * @returns whether the provided parameter is defined. */ export declare function isDefined(arg: T | null | undefined): arg is T; /** * @returns whether the provided parameter is undefined or null. */ export declare function isUndefinedOrNull(obj: any): obj is undefined | null; /** * @returns whether the provided parameter is null. */ export declare function isNull(obj: any): obj is null; export declare function hasProperty(obj: X, prop: Y): obj is X & Record; /** * @returns whether the provided parameter is an empty JavaScript Object or not. */ export declare function isEmptyObject(obj: any): obj is any; /** * @returns whether the provided parameter is a JavaScript Function or not. */ export declare function isFunction(obj: any): obj is T; /** * @returns whether the provided parameters is are JavaScript Function or not. */ export declare function areFunctions(...objects: any[]): boolean; export type TypeConstraint = string | Function; export declare function validateConstraints(args: any[], constraints: Array): void; export declare function validateConstraint(arg: any, constraint: TypeConstraint | undefined): void; /** * 混入对象值 * @export * @param {*} destination * @param {*} source * @param {boolean} [overwrite=true] 是否深度混入 * @returns {*} */ export declare function mixin(destination: any, source: any, overwrite?: boolean): any; /** * Converts null to undefined, passes all other values through. */ export declare function withNullAsUndefined(x: T | null): T | undefined; export declare function isPromise(obj: any): obj is Promise; export declare function isUint8Array(obj: any): obj is Uint8Array; export type RemoveReadonly = { -readonly [P in keyof T]: T[P]; }; export declare function removeReadonly(obj: T): RemoveReadonly; export declare function isIterable(obj: any): obj is Iterable; //# sourceMappingURL=types.d.ts.map