@mondaydotcomorg/atp-compiler
Version:
Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management
19 lines • 845 B
TypeScript
import type { CacheProvider } from '@mondaydotcomorg/atp-protocol';
import type { LoopCheckpoint } from '../types.js';
export declare class CheckpointManager {
private cache;
private executionId;
private prefix;
constructor(executionId: string, cache: CacheProvider, prefix?: string);
save(checkpoint: LoopCheckpoint): Promise<void>;
load(loopId: string): Promise<LoopCheckpoint | null>;
clear(loopId: string): Promise<void>;
clearAll(): Promise<void>;
private getKey;
getExecutionId(): string;
}
export declare function setCheckpointManager(manager: CheckpointManager): void;
export declare function getCheckpointManager(): CheckpointManager;
export declare function clearCheckpointManager(): void;
export declare function hasCheckpointManager(): boolean;
//# sourceMappingURL=checkpoint-manager.d.ts.map