import type { CacheAdapter } from './cache-adapter.js'; /** * Shared machinery behind the two public run-store families * ({@link AgentRunStore} for top-level `stream()` pauses, * {@link SubAgentRunStore} for `Agent.asTool` sub-run pauses). * * Nothing here is exported from the package entrypoint: the public surface is * the concrete subclasses in `agent-run-store.ts` / `sub-agent-run-store.ts`, * which pin the snapshot type, the default key prefix and the docs. Both * families store the same shape of thing under a different id, so the storage * mechanics live once. */ /** `Map`-backed store body. Single-process only; lossy across restarts. */ export declare class InMemoryRunStoreBase { private readonly snapshots; store(id: string, snapshot: S): Promise; load(id: string): Promise; consume(id: string): Promise; /** Test helper — clears all snapshots without consuming. */ clear(): void; } /** Options shared by both cache-backed stores; each subclass re-declares its own public alias. */ export interface CachedRunStoreBaseOptions { cache: CacheAdapter; keyPrefix?: string; ttlSeconds?: number; } /** Per-subclass constants: the default key namespace and the name used in the constructor error. */ export interface CachedRunStoreDefaults { keyPrefix: string; storeName: string; } /** `CacheAdapter`-backed store body. Default TTL is 5 minutes. */ export declare class CachedRunStoreBase { private readonly cache; private readonly keyPrefix; private readonly ttlSeconds; constructor(opts: CachedRunStoreBaseOptions, defaults: CachedRunStoreDefaults); store(id: string, snapshot: S): Promise; load(id: string): Promise; consume(id: string): Promise; } //# sourceMappingURL=run-store-base.d.ts.map