/// = (context: Context) => S;
export interface InitStoreOptions {
makeStore: MakeStore;
context?: Context;
}
export declare const createWrapper: >(makeStore: MakeStore, config?: Config) => {
getServerSideProps:
(callback: GetServerSidePropsCallback) => GetServerSideProps
;
getStaticProps: = NextComponentType = ({ Component, ctx }: AppContext) => Promise ;
export declare type GetServerSidePropsCallback ;
export declare type PageCallback ;
export declare type AppCallback ;
export declare type Callback) => GetStaticProps) => GetInitialAppProps) => ((context: NextPageContext>(makeStore: MakeStore, config?: Config) => (Component: any) => {
(props: any): JSX.Element;
displayName: string;
getInitialProps: any;
};
export default _default;
export declare type Context = NextPageContext | AppContext | GetStaticPropsContext | GetServerSidePropsContext;
export interface Config {
serializeState?: (state: ReturnType) => any;
deserializeState?: (state: any) => ReturnType;
debug?: boolean;
}
export interface WrapperProps {
initialProps: any;
initialState: any;
}
declare type GetInitialPageProps = (store: S) => GetStaticProps = (store: S) => GetServerSideProps = (store: S) => GetInitialPageProps = (store: S) => GetInitialAppProps = GetStaticPropsCallback | GetServerSidePropsCallback | PageCallback | AppCallback;
declare module 'next' {
interface NextPageContext {
/**
* Provided by next-redux-wrapper: The redux store
*/
store: S;
}
}