import type { ComponentProps, ComponentType, ReactElement } from 'react'; import React from 'react'; /** * * @param factory function that retuns a promise of a component * @returns a lazy loaded component. you can pass a fallback to the component that renders on server or when the component is not loaded */ declare const loadable: >(factory: () => Promise<{ default: T; }>) => React.ForwardRefExoticComponent & { /** * render a fallback on server or if the component is not loaded */ fallback?: ReactElement> | undefined; }> & React.RefAttributes> & { load: () => Promise; }; export default loadable; //# sourceMappingURL=index.d.ts.map