UNPKG

@augmentcode/ag-redux-toolkit

Version:

Redux + Saga state management for Svelte apps — designed for AI agents. Includes runtime TypeScript source, AI skills, and reference documentation for robust, observable, high-performance state management.

20 lines • 993 B
import { ReduxStore, SagaStatusRecord } from '../../../internal-types'; export declare const getBackOffDelay: (restarts: number) => number; /** * Context exposed by the saga manager for monitoring saga statuses. */ export type SagaManagerContext = { tasks: Record<string, SagaStatusRecord>; }; /** * The saga manager orchestrates lifecycle of started sagas. * Store.runSaga sends both the saga name and function so sagas registered after * Store.init() can be started and retained for restart handling. * * @param reduxStore - The actual Redux store exposed to selector-channel effects * @param exposeContext - Callback to expose saga status for monitoring/debugging */ export declare function sagaManager(reduxStore: ReduxStore, exposeContext: (tasks: SagaManagerContext["tasks"]) => void): Generator<import('redux-saga/effects').SetContextEffect<{ reduxStore: ReduxStore; }> | import('redux-saga/effects').ForkEffect<never>, void, any>; //# sourceMappingURL=manager.d.ts.map