/** Owns provider selection, shared execution lifetime, and audience-aware state composition for one runtime. Uses the runtime’s canonical public state cache and preserves original runtime identity at provider and hook boundaries. */ import type { Memory } from "../types/memory.js"; import type { IAgentRuntime } from "../types/runtime.js"; import type { Service, ServiceTypeName } from "../types/service.js"; import type { State } from "../types/state.js"; export declare const STATE_CACHE_LIMIT = 512; export declare class ProviderStateComposer { private readonly runtime; private readonly lifecycle; constructor(runtime: IAgentRuntime, lifecycle: { hasProviderSelectionHooks: () => boolean; ensureServiceStarted: (serviceType: ServiceTypeName | string) => Promise; isStopping: () => boolean; }); private readonly publicProviderStateByMessage; private providerExecutionsInFlight; private providerExecutionsActive; stop(): void; composeState(message: Memory, includeList?: string[] | null, onlyInclude?: boolean, skipCache?: boolean, refreshProviders?: string[] | null, options?: { deferredReferenceProviders?: readonly string[]; }): Promise; /** Select names before disclosure admission or execution; explicit stages remain an upper bound. */ private selectProviderNames; /** Publish only after audience checks; cancellation is rechecked after reading lazy provider values. */ private publishState; }