import { CacheProvider , CacheStorageKey } from '@discordoo/providers' ; export async function cacheProviderHasPolyfill < K = string , P extends CacheProvider = CacheProvider > ( provider , keyspace , storage , key ) { return ! ! ( await provider . get < K > ( keyspace , storage , key ) ) ; }