@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.
26 lines • 1.49 kB
TypeScript
import { Saga } from 'redux-saga';
export declare const MAX_SAGA_CRASH_REPORTS = 100;
export type SerializedSagaError = {
name: string;
message: string;
stack?: string;
};
export type SerializedSagaCrashReport = {
crashedAtTs: number;
error: SerializedSagaError;
};
export type SagaCrashReports = {
reports: SerializedSagaCrashReport[];
omittedCount: number;
};
export type SagaCrashState = Record<string, SagaCrashReports>;
export declare const startSaga: import('../../types').StoreActionCreator<[sagaName: string, saga: Saga], [sagaName: string, saga: Saga]>;
export declare const stopSaga: import('../../types').StoreActionCreator<[string], [string]>;
export declare const addCrash: import('../../types').StoreActionCreator<[sagaName: string, report: SerializedSagaCrashReport], [sagaName: string, report: SerializedSagaCrashReport]>;
export declare const clearCrashes: import('../../types').StoreActionCreator<[sagaName: string], [sagaName: string]>;
export declare const sagaManagerReducer: {
(state: SagaCrashState | undefined, action: import('../../types').StoreAction<any> | import('redux').UnknownAction): SagaCrashState;
with: <ARGS extends any[], PL = ARGS>(action: import('../../types').StoreActionCreator<ARGS, PL>, reducer: import('../../utils/store/create-reducer').StoreReducer<SagaCrashState, import('../../types').StoreAction<PL>>) => /*elided*/ any;
initialState: SagaCrashState;
};
//# sourceMappingURL=saga-manager-slice.d.ts.map