1 | import React from 'react';
|
2 | import { ApiClientConfig, Application, Middleware } from './types';
|
3 | export declare type ReactComponent<P> = React.StatelessComponent<P> | React.ComponentClass<P>;
|
4 | export interface Context {
|
5 | appBridgeMiddleware: Middleware;
|
6 | }
|
7 | export interface DispatchToProps {
|
8 | (app: Application): any;
|
9 | }
|
10 | export interface WithAppProps<Store> {
|
11 | app: Application;
|
12 | store: Store;
|
13 | }
|
14 | export interface RequiredProps {
|
15 | config: ApiClientConfig;
|
16 | }
|
17 | export interface State {
|
18 | mounted: boolean;
|
19 | }
|
20 | export declare type StoreToProps<Store> = (obj: any) => Store;
|
21 | export declare function withApp<Store>(storeToProps?: StoreToProps<Store>, dispatchToProps?: DispatchToProps): <OwnProps>(WrappedComponent: ReactComponent<OwnProps>) => React.ComponentClass<OwnProps & RequiredProps & WithAppProps<Store>, any>;
|