export declare const RealUndefined: unique symbol; export type RealUndefined = typeof RealUndefined; /** * 异步函数类型。 * * @template Args - 表示函数参数的类型数组。 * @template T - 表示函数返回的 Promise 解析后的类型。 * * @param args - 函数的参数。 * @returns 一个 Promise 对象,解析后的值类型为 T。 */ export type AsyncFunction = (this: any, ...args: Args) => Promise; /** * 表示一个可以克隆自身的对象接口。 * * @interface Cloneable */ export interface Cloneable { /** * 创建并返回当前对象的一个副本。 * * @returns {this} 当前对象的一个副本。 */ clone(): this; } /** * * 检查一个对象是否实现了 Cloneable 接口。 * * 这个函数是一个类型保护函数,它会在类型检查时将传入的对象类型缩小为 Cloneable。 * * @param {any} obj - 要检查的对象。 * @returns {obj is Cloneable} 如果对象实现了 Cloneable 接口,则返回 true;否则返回 false。 */ export declare function isCloneable(obj: any): obj is Cloneable; /** * 检查一个值是否是原始类型(primitive type)。 * * 这个函数是一个类型保护函数,它会在类型检查时将传入的值类型缩小为原始类型之一:string, number, boolean, null 或 undefined。 * * @param {any} value - 要检查的值。 * @returns {value is string | number | boolean | null | undefined} 如果值是原始类型,则返回 true;否则返回 false。 */ export declare function isPrimitive(value: any): value is string | number | boolean | null | undefined;