export type GlobalSweepFilter<Key, Value> = () => | ((value: Value, key: Key, collection: Collection<Key, Value>) => boolean) | null;Returns: Return null to skip sweeping, otherwise a function passed to sweep(), See Collection#sweep for the definition of this function.