///
import * as React from 'react';
import { Observable } from 'rxjs';
export declare type MapQueryToPropsFunc = (props: any, context: any, variables: any) => Promise>;
export interface ConnectParams {
observeQuery: MapQueryToPropsFunc;
requiredContext?: object;
mapPropsToVariables?: (props: any) => any;
}
export default function connect({observeQuery, requiredContext, mapPropsToVariables}: ConnectParams): (WrappedComponent: any) => {
new (props: any, context: any): {
state: {
unsubscribe?: Function | undefined;
stopObserving?: Function | undefined;
propsbuffer: any;
variables: any;
};
componentWillReceiveProps(nextProps: any): void;
componentWillMount(): void;
componentWillUnmount(): void;
render(): JSX.Element | null;
observe(props: any, variables: any): void;
setState(state: any, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
props: Readonly<{
children?: React.ReactNode;
}> & Readonly;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
contextTypes: object | undefined;
};