import React from 'react';
import { TipserContextData } from './config';
export { TipserContextData };
export interface Contextable {
    context?: TipserContextData;
    updateContext?: (value: Partial<TipserContextData>) => void;
}
export declare const TipserContextProvider: React.Provider<{
    data: TipserContextData;
    updateContext: (value: Partial<TipserContextData>) => void;
}>;
export declare const TipserContextConsumer: React.Consumer<{
    data: TipserContextData;
    updateContext: (value: Partial<TipserContextData>) => void;
}>;
export declare const connectedElement: <K extends Contextable>(Component: React.ComponentType<K>) => {
    new (props: Readonly<Exclude<K, "context" | "updateContext">>): {
        render(): JSX.Element;
        context: any;
        setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Exclude<K, "context" | "updateContext">>) => {} | Pick<{}, K_1>) | Pick<{}, K_1>, callback?: () => void): void;
        forceUpdate(callBack?: () => void): void;
        readonly props: Readonly<React.PropsWithChildren<Exclude<K, "context" | "updateContext">>>;
        state: Readonly<{}>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<Exclude<K, "context" | "updateContext">>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<Exclude<K, "context" | "updateContext">>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextState: Readonly<{}>, nextContext: any): void;
    };
    new (props: Exclude<K, "context" | "updateContext">, context?: any): {
        render(): JSX.Element;
        context: any;
        setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Exclude<K, "context" | "updateContext">>) => {} | Pick<{}, K_1>) | Pick<{}, K_1>, callback?: () => void): void;
        forceUpdate(callBack?: () => void): void;
        readonly props: Readonly<React.PropsWithChildren<Exclude<K, "context" | "updateContext">>>;
        state: Readonly<{}>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<Exclude<K, "context" | "updateContext">>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<Exclude<K, "context" | "updateContext">>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<Exclude<K, "context" | "updateContext">>, nextState: Readonly<{}>, nextContext: any): void;
    };
    displayName: string;
    contextType?: React.Context<any>;
};
export declare const useUpdatableTipserContext: () => {
    data: TipserContextData;
    updateContext: (value: Partial<TipserContextData>) => void;
};
export declare const useTipserContext: () => TipserContextData;
//# sourceMappingURL=tipser-context.d.ts.map