import { IQAppReducer } from './reducer'; import { IQAppModuleSaga } from './saga'; export interface IQAppModule { moduleName: ExtractQAppModuleName; reducer: IQAppReducer | null; saga: IQAppModuleSaga | null; } export declare type AnyQAppModule = IQAppModule; export interface IQAppModuleOptions { reducer?: IQAppReducer; saga?: IQAppModuleSaga | null; } export interface IQAppModuleDefOptions { moduleName: TFeatureName; } export interface IQAppModuleDef { moduleName: TFeatureName; } export declare type AnyQAppModuleDef = IQAppModuleDef; export declare type ExtractQAppModuleName = T extends IQAppModuleDef ? TModuleName : never; export declare type ExtractQAppModuleState = T extends IQAppModuleDef ? TState : never; export declare function defineModule(defOptions: IQAppModuleDefOptions, _state: TState): IQAppModuleDef<`${TModuleName}`, TState>; export declare function withState(): TState; export declare function createModule(moduleDef: TModuleDef, options: IQAppModuleOptions): IQAppModule;