/** * PauseManager - Query APIs for pending pauses. * * Provides getPendingPause(runId) and listPendingPauses() methods * for applications to check and display paused workflow requests. */ import type { CheckpointManager } from '../checkpoint/manager'; import type { PendingPause } from './types'; /** * Options for creating a PauseManager. */ export interface PauseManagerOptions { /** CheckpointManager for storage access */ checkpointManager: CheckpointManager; } /** * Manager for querying pending human input pauses. * * @example * const pauseManager = new PauseManager({ checkpointManager }); * * // Check specific run * const pause = await pauseManager.getPendingPause('run-123'); * if (pause) { * console.log(`Awaiting: ${pause.prompt}`); * } * * // List all pending * const allPauses = await pauseManager.listPendingPauses(); */ export declare class PauseManager { private checkpointManager; constructor(options: PauseManagerOptions); /** * Get pending pause for a specific run. * * @param runId - The run identifier to check * @returns PendingPause if run is paused, null otherwise */ getPendingPause(runId: string): Promise; /** * List all pending pauses across all runs. * * Queries checkpoints with status='paused' and filters out expired ones. * * @returns Array of pending pauses, sorted by createdAt descending (newest first) */ listPendingPauses(): Promise; /** * Check if a run has a pending pause. * * @param runId - The run identifier to check * @returns true if run is paused and not expired */ hasPendingPause(runId: string): Promise; } //# sourceMappingURL=manager.d.ts.map