import React from 'react';
type ComponentType<P = any> = React.ComponentType<P>;
type LoaderFunction<T extends ComponentType> = () => Promise<{
    default: T;
} | T>;
interface LazyComponentOptions {
    LoadingComponent?: React.ComponentType;
    ErrorComponent?: React.ComponentType<{
        error: Error;
    }>;
}
export declare function createLazyComponent<T extends ComponentType, P extends React.ComponentProps<T>>(loader: LoaderFunction<T>, options?: LazyComponentOptions): (props: P) => JSX.Element;
export {};
