import React from 'react';
import { ApiClientConfig, Application, Middleware } from './';
export declare type ReactComponent
= React.StatelessComponent
| React.ComponentClass
;
export interface Context {
appBridgeMiddleware: Middleware;
}
export interface DispatchToProps {
(app: Application): any;
}
export interface WithAppProps {
app: Application;
store: Store;
}
export interface RequiredProps {
config: ApiClientConfig;
}
export interface State {
mounted: Boolean;
}
export declare type StoreToProps = (obj: any) => Store;
export declare function withApp(storeToProps?: StoreToProps, dispatchToProps?: DispatchToProps): (WrappedComponent: ReactComponent) => React.ComponentClass, any>;