type EmptyString = ''; type EmptyObject = Record; type EmptyArray = never[]; type EmptySet = Set; type EmptyMap = Map; type Empty = EmptyArray | EmptyObject | EmptyString | EmptySet | EmptyMap; type EmptyResult = T extends string ? EmptyString : T extends unknown[] ? EmptyArray : T extends Set ? EmptySet : T extends Map ? EmptyMap : T extends object ? EmptyObject : never; /** * Checks if a value is empty. A value is considered empty if it is `null`, `undefined`, an empty string (or whitespace-only string), an empty array, an empty object, an empty Set, or an empty Map. * * @param value - The value to check. * @returns `true` if the value is empty, otherwise `false`. */ export declare function isEmpty(value: T | Empty | null | undefined): value is EmptyResult | null | undefined; export {};