/** * InterfaceGenerator — converts tool Zod/JSON schemas to TypeScript interfaces. * * Produces TypeScript interface strings grouped by namespace so agents can * understand tool parameter shapes before calling them. */ import type { ToolEntry } from './types.js'; export declare class InterfaceGenerator { private readonly tools; constructor(tools: ToolEntry[]); /** * Generate TypeScript interface definitions for all tools. * * Groups tools by namespace into ambient namespace declarations so that * code running in the sandbox can reference `gitlab.list_issues({ ... })`. */ generateAll(): string; /** * Generate a TypeScript interface for a single tool by name. * * Returns a string containing the interface definition and JSDoc comment, * or a comment indicating the tool was not found. */ generateForToolByName(toolName: string): string; /** * Generate a TypeScript interface for a single ToolEntry. * * @param tool The tool to generate an interface for. * @param indented When true, indent by 2 spaces (for namespace blocks). */ private generateForTool; /** * Return a map of tool name → interface string for all tools. * Used to set up __getToolInterface() inside the sandbox. */ buildInterfaceMap(): Record; } //# sourceMappingURL=interface-generator.d.ts.map