import React from 'react'; export interface StatefulComponentProperties { component?: React.ComponentType; loadingComponent?: React.ComponentType; emptyComponent?: React.ComponentType; errorComponent?: React.ComponentType; children?: ((...args: any[]) => any) | React.ReactNode; isLoading?: (props: StatefulComponentProperties) => boolean; isEmpty?: (props: StatefulComponentProperties) => boolean; checkError?: (props: StatefulComponentProperties) => any; loading?: boolean; data?: any; error?: any; } export declare type StatefulComponentState = { isLoading: boolean; isEmpty: boolean; hasError: boolean; error?: any; }; /** * A Component to manage all states of a component with data */ export declare type StatefulComponent = React.ComponentType; declare const _default: React.ComponentType; export default _default;