import { ComponentProps, ComponentType, FunctionComponent } from 'react'; import { PRIORITY } from './constants'; import type { Cleanup } from './preload'; export type PreloadPriority = typeof PRIORITY.HIGH | typeof PRIORITY.LOW; export type LazyOptions = { /** * Whenever it should be required and rendered in SSR * If false it will just render the provided fallback */ ssr?: boolean; /** * Id of `PHASE` responsible for start loading */ defer?: number; /** * Id of the module being imported (normally its path). * It's calculated and provided by babel plugin */ moduleId?: string; }; export type LazyComponent> = FunctionComponent> & { preload: (priority?: PreloadPriority) => Cleanup; getAssetUrls: () => string[] | undefined; }; export interface SubscriptionContextValue { subscribe: (callback: () => void) => Cleanup; currentValue: () => number; } //# sourceMappingURL=types.d.ts.map