import { Cache , ScopedMutator , RevalidateCallback , StateUpdateCallback } from '../types' ; export type GlobalState = [ Record < string , RevalidateCallback [ ] > , Record < string , StateUpdateCallback [ ] > , Record < string , [ number , number ] > , Record < string , [ any , number ] > , ScopedMutator ] ; export const SWRGlobalState = new WeakMap < Cache , GlobalState > ( ) ;