import * as React from 'react'; import { IStateliStore } from 'stateli'; export declare class StateliProvider extends React.Component<{ debug: boolean; store: IStateliStore; }> { constructor(props: any); render(): JSX.Element; } export declare function WrapComponentWithStore(Component: any, getState?: (rootState: RootState) => State): { new (props: any, context?: any): { render(): JSX.Element; unsub: () => void; getStateliState?: ((rootState: RootState) => State) | undefined; readonly 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; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }; contextType?: React.Context | undefined; };