import { Context , SCREENSHOTTING_CONTEXT_KEY } from '../common/context' ; declare global { interface Window { [ SCREENSHOTTING_CONTEXT_KEY ] ? : Context ; } } export class ContextStorage { get < T extends Context = Context > ( ) { return ( window [ SCREENSHOTTING_CONTEXT_KEY ] ?? { } ) as T ; } }