import { type KeyType } from '../Cache'; export type ExtractStyle = (cache: CacheValue, effectStyles: Record, options?: { plain?: boolean; }) => [order: number, styleId: string, style: string] | null; export default function useGlobalCache(prefix: string, keyPath: KeyType[], cacheFn: () => CacheType, onCacheRemove?: (cache: CacheType, fromHMR: boolean) => void, onCacheEffect?: (cachedValue: CacheType) => void): CacheType;