export type LazyModule = () => Promise; export type ImportedModule = M | LazyModule; export type ImportedModules = Record>; declare global { function resolveReactComponent(name: string): ImportedModule; function resolveVueComponent(name: string): VueComponent; function resolveSvelteComponent(name: string): ImportedModule; interface Window { resolveReactComponent(name: string): ImportedModule; resolveVueComponent(name: string): VueComponent; resolveSvelteComponent(name: string): ImportedModule; } }