/** * Process-wide WarmSubagentPool singleton + enablement gate. * * Mirrors subagent-pool-instance: one shared warm pool per process so worker * reuse and idle reclaim are coordinated across every dispatch. Created lazily on * first use and disposed on exit. Enablement is carried in the environment * (HOOCODE_WARM_SUBAGENTS) so it is set once at the root and is trivially * readable from the Task tool without threading a setting through every call. */ import type { Api, Model } from "@kolisachint/hoocode-ai"; import { WarmSubagentPool } from "./warm-subagent-pool.js"; /** Set to "1" at the root when warm subagents are enabled (flag or setting). */ export declare const WARM_SUBAGENTS_ENV = "HOOCODE_WARM_SUBAGENTS"; /** Whether warm-subagent dispatch is enabled for this process. */ export declare function warmSubagentsEnabled(env?: NodeJS.ProcessEnv): boolean; /** * Get the shared warm pool for a working directory, creating it on first use. * * `availableModels` (the caller's `ModelRegistry.getAvailable()`) is snapshotted * on first creation and used to derive default model-category mappings for any * tier the user has not explicitly configured. */ export declare function getWarmSubagentPool(cwd: string, availableModels?: readonly Model[]): WarmSubagentPool; /** Update the skill paths forwarded to new warm workers (kept in sync with the resource loader). */ export declare function updateWarmSubagentSkillPaths(paths: string[]): void; //# sourceMappingURL=warm-subagent-pool-instance.d.ts.map