import type { GatewayToolExecutor } from '../gateway-tool-executor.js'; import type { GatewayToolExecutionContext } from '../types.js'; import type { CodeActSandbox } from './sandbox.js'; import type { FunctionDescriptor } from './types.js'; import type { RoleConfig } from '../../cli/config/types.js'; import { RoleManager } from '../role-manager.js'; /** Tool metadata for .d.ts generation */ export interface ToolMeta { name: string; description: string; params: { name: string; type: string; required: boolean; description?: string; }[]; returnType: string; category: FunctionDescriptor['category']; } /** Read-only tool names for Tier 3 (strictest) */ export declare const READ_ONLY_TOOLS: Set; /** Memory-write tools additionally allowed for Tier 2 */ export declare const MEMORY_WRITE_TOOLS: Set; export declare class HostBridge { private executor; private roleManager?; private executionContext?; onToolUse?: (toolName: string, input: Record, result: unknown) => void; constructor(executor: GatewayToolExecutor, roleManager?: RoleManager | undefined, executionContext?: (GatewayToolExecutionContext | null) | undefined); /** Inject all allowed functions into sandbox based on tier */ injectInto(sandbox: CodeActSandbox, tier?: 1 | 2 | 3, role?: RoleConfig): void; /** Get available function descriptors filtered by tier */ getAvailableFunctions(tier?: 1 | 2 | 3): FunctionDescriptor[]; /** Get all tool metadata (for TypeDefinitionGenerator) */ static getToolRegistry(): readonly ToolMeta[]; /** Build input object from positional or object args */ private _buildInput; } //# sourceMappingURL=host-bridge.d.ts.map