import React from 'react';
import { Contextable } from '../tipser-context';
import { ComponentModel } from '../common/models';
import { CONNECTOR_TYPE } from './connector-type';
export declare function withContentful(connectorType?: CONNECTOR_TYPE): <T extends Contextable & ComponentModel>(Component: React.ComponentType<T>) => {
    new <K extends ComponentModel>(props: Readonly<K>): {
        render(): JSX.Element;
        context: any;
        setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<K>) => {} | Pick<{}, K_1>) | Pick<{}, K_1>, callback?: () => void): void;
        forceUpdate(callBack?: () => void): void;
        readonly props: Readonly<React.PropsWithChildren<K>>;
        state: Readonly<{}>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
    };
    new <K extends ComponentModel>(props: K, context?: any): {
        render(): JSX.Element;
        context: any;
        setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<K>) => {} | Pick<{}, K_1>) | Pick<{}, K_1>, callback?: () => void): void;
        forceUpdate(callBack?: () => void): void;
        readonly props: Readonly<React.PropsWithChildren<K>>;
        state: Readonly<{}>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
    };
    displayName: string;
    contextType?: React.Context<any>;
};
//# sourceMappingURL=with-contentful.d.ts.map