import * as React from 'react'; import { Dispatch, Unsubscribe, Store } from 'redux'; import { Renderable, Omit } from './types'; export interface ConnectedProps { store: Store; children: (derivedState: Derived, dispatch: Dispatch) => Renderable; deriveState: (state: State) => Derived; } interface ReplaceableState { state: State; } export declare class Connected extends React.Component, ReplaceableState> { static defaultProps: { deriveState: (x: T) => T; }; deriveState: (state: State) => Derived; state: ReplaceableState; unsubscribe: Unsubscribe; constructor(props: ConnectedProps); replace(state: Derived): void; getDerivedState(): Derived; onStoreUpdate: () => void; render(): React.ReactNode; componentDidMount(): void; componentWillUnmount(): void; } export declare class ContextConnected extends React.Component, 'store'>> { static defaultProps: { deriveState: (x: T) => T; }; render(): JSX.Element; } export {};