import type { OrgToolDef } from './agent-runner.js'; import type { OrgBus } from './bus.js'; import type { ChainTrace } from './tool-providers.js'; import { type McpToolInfo } from './tool-providers-client.js'; import { type ProviderContext } from './tool-providers-process.js'; import type { ToolProviderConfig } from './types.js'; export interface RoleProviderToolSet { tools: OrgToolDef[]; /** Kill every provider process this session started. Idempotent. */ close(): void; /** Live provider pids by provider name (tests / diagnostics). */ pids(): Record; } /** Daemon-lifetime owner of provider tool-list caches and live processes. */ export declare class ToolProviderHub { private listCache; private sessions; /** tools/list for one provider config — cached per config hash. A failed * listing is evicted so the next session start retries it. */ listTools(p: ToolProviderConfig, ctx: ProviderContext, cwd?: string): Promise; /** Build the provider tools for one role session. Providers whose tool list * cannot be fetched are skipped with an `audit` event — a broken provider * must not take the whole role down. */ buildRoleTools(opts: { ctx: ProviderContext; providers: ToolProviderConfig[]; trace: () => ChainTrace; bus?: OrgBus; cwd?: string; reservedNames?: Set; }): Promise; /** Kill every provider process of every live session of `org`. */ closeOrg(org: string): void; closeAll(): void; } //# sourceMappingURL=tool-providers-hub.d.ts.map