/** * 检查给定的值是否为空。 * * @param value - 要检查的值。 * @returns 如果值是 `undefined`、 `null`、空字符串、空数组或空对象,则返回 `true`;否则返回 `false`。 * * @remarks * 此函数将以下类型视为空: * - `undefined` * - `null` * - 空字符串 (`''`) * - 空数组 (`[]`) * - 空对象 (`{}`) * * @example * ```typescript * console.log(hasEmpty(undefined)); // true * console.log(hasEmpty(null)); // true * console.log(hasEmpty('')); // true * console.log(hasEmpty([])); // true * console.log(hasEmpty({})); // true * console.log(hasEmpty(123)); // false * console.log(hasEmpty('abc')); // false * console.log(hasEmpty(['a', 'b'])); // false * console.log(hasEmpty({ key: 'value' })); // false * ``` */ export declare function hasEmpty(value: any): boolean;