import { ComponentType } from 'react';
import { FallbackProps } from './fallback';
import './style';
export interface LazyLoadResult<P> {
    default: ComponentType<P>;
}
export type LazyLoadLoader<P> = () => Promise<LazyLoadResult<P>>;
export interface LazyLoadProps<P> extends FallbackProps {
    /**
     * 组件加载器，一般为 import()
     */
    loader: LazyLoadLoader<P>;
    /**
     * 该事件在加载失败时触发
     */
    onError?: (error: any) => void;
}
declare function LazyLoad<P extends Record<string, any> = Record<string, any>>(props: LazyLoadProps<P> & P): import("react/jsx-runtime").JSX.Element;
export default LazyLoad;
