import { Exception } from "./Exception"; import { Module, type ModuleLifecycleListener } from "./platform/Module"; import { ModuleProxy } from "./platform/ModuleProxy"; import { type Action } from "./reducer"; import { type SagaGenerator } from "./typed-saga"; export interface TickIntervalDecoratorFlag { tickInterval?: number; } export type ActionHandler = (...args: any[]) => SagaGenerator; export type ErrorHandler = (error: Exception) => SagaGenerator; export interface ErrorListener { onError: ErrorHandler; } type ActionCreator = H extends (...args: infer P) => SagaGenerator ? (...args: P) => Action

: never; type HandlerKeys = { [K in keyof H]: H[K] extends (...args: any[]) => SagaGenerator ? K : never; }[Exclude]; export type ActionCreators = { readonly [K in HandlerKeys]: ActionCreator; }; export declare function register>(module: M): ModuleProxy; export declare function executeAction(actionName: string, handler: ActionHandler, ...payload: any[]): SagaGenerator; export {}; //# sourceMappingURL=module.d.ts.map