import { type Logger } from "../Logger"; import { type TickIntervalDecoratorFlag } from "../module"; import { type State } from "../reducer"; import { type SagaGenerator } from "../typed-saga"; export interface ModuleLifecycleListener { onEnter: (routeParameters: RouteParam) => SagaGenerator; onDestroy: () => SagaGenerator; onTick: (() => SagaGenerator) & TickIntervalDecoratorFlag; onAppActive: () => SagaGenerator; onAppInactive: () => SagaGenerator; onFocus: () => SagaGenerator; onBlur: () => SagaGenerator; } export declare class Module implements ModuleLifecycleListener { readonly name: ModuleName; readonly initialState: RootState["app"][ModuleName]; constructor(name: ModuleName, initialState: RootState["app"][ModuleName]); onEnter(routeParameters: RouteParam): SagaGenerator; onDestroy(): SagaGenerator; onTick(): SagaGenerator; onAppActive(): SagaGenerator; onAppInactive(): SagaGenerator; onFocus(): SagaGenerator; onBlur(): SagaGenerator; get state(): Readonly; get rootState(): Readonly; get logger(): Logger; setState(stateOrUpdater: ((state: RootState["app"][ModuleName]) => void) | Pick | RootState["app"][ModuleName]): void; } //# sourceMappingURL=Module.d.ts.map