import { ReactNode, ComponentType } from 'react' declare global { namespace NodeJS { interface Global { [key: string]: any } } } export function getComponent (...args: any): object interface AsyncModule { __esModule: boolean default: ReactNode } interface AsyncSuspenseProps { type: 'component' | 'page' chunkName: string moduleId: string getFallback?: () => ComponentType getLoading?: () => ComponentType getChildren: () => Promise } export function getAsyncSuspense (props: AsyncSuspenseProps): ReactNode