import { Context, Effect, Layer, Scope, Semaphore } from "effect"; import { Chat } from "effect/unstable/ai"; /** @experimental Shared resources owned by persisted agent runs. */ export interface RuntimeInterface { readonly persistenceSemaphore: (persistence: Chat.Persistence.Service, chatId: string) => Effect.Effect; } declare const Runtime_base: Context.ServiceClass; /** @experimental Application-scoped owner for resources shared across agent runs. */ export declare class Runtime extends Runtime_base { } /** @experimental Build one application-scoped agent runtime. */ export declare const makeRuntime: Effect.Effect; /** @experimental Application-scoped owner for resources shared across agent runs. */ export declare const layerRuntime: Layer.Layer; export {};