import { type ActionHandler } from "../module"; import { Module } from "../platform/Module"; import { type State } from "../reducer"; import { type Logger } from "../Logger"; import { type SagaGenerator } from "../typed-saga"; export { Interval } from "./Interval"; export { Loading } from "./Loading"; export { Log } from "./Log"; export { Mutex } from "./Mutex"; export { RetryOnNetworkConnectionError } from "./RetryOnNetworkConnectionError"; export { SilentOnNetworkConnectionError } from "./SilentOnNetworkConnectionError"; /** * Decorator type declaration, required by TypeScript. */ type HandlerDecorator = (target: object, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; type VoidFunctionDecorator = (target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => void>) => TypedPropertyDescriptor<(...args: any[]) => void>; type ActionHandlerWithMetaData = ActionHandler & { actionName: string; maskedParams: string; }; type HandlerInterceptor = (handler: ActionHandlerWithMetaData, thisModule: Module) => SagaGenerator; type FunctionInterceptor = (handler: () => void, rootState: Readonly, logger: Logger) => void; /** * A helper for ActionHandler functions (Saga). */ export declare function createActionHandlerDecorator(interceptor: HandlerInterceptor): HandlerDecorator; /** * A helper for regular functions. */ export declare function createRegularDecorator(interceptor: FunctionInterceptor): VoidFunctionDecorator; //# sourceMappingURL=index.d.ts.map