import * as React from 'react'; import { IStateliStore } from 'stateli'; export interface IComponentWithStore { readonly rootState: RootState; commit(type: string, payload?: any): void; dispatch(type: string, payload?: any): Promise; getter(type: string): any; storeSubscribe(observer: (payload: { type: string; payload: any; store: IStateliStore; }) => void): { unsubscribe: () => void; }; getStore(): IStateliStore; } export declare class ComponentWithStore extends React.Component implements IComponentWithStore { getStateliState?: ((rootState: RootState) => State) | undefined; unsub: () => void; constructor(props: any, context?: any, getStateliState?: ((rootState: RootState) => State) | undefined); get rootState(): any; commit(type: string, payload?: any): void; dispatch(type: string, payload?: any): any; getter(type: string): any; storeSubscribe(observer: (payload: { type: string; payload: any; store: IStateliStore; }) => void): any; getStore(): any; componentDidMount(): void; componentWillUnmount(): void; }