import { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; import { ExportFormats } from '../sandbox/runProgram.js'; export interface RunProgramToolArgs { /** A brepjs `.brep.ts` module source with a default-exported part function. */ code: string; /** Optional wall-clock budget in ms (default 30000). */ timeoutMs?: number; } /** JSON Schema for `run_program` input (the low-level Server API takes plain JSON Schema). */ export declare const RUN_PROGRAM_INPUT_SCHEMA: { type: "object"; properties: { code: { type: string; description: string; }; timeoutMs: { type: string; description: string; }; }; required: string[]; }; /** * Execute an agent-authored brepjs program in the sandbox and return its verification report. * `isError` is set when the part failed checks, timed out, or crashed — so the agent can branch. */ export declare function runProgramTool(args: RunProgramToolArgs): Promise; export interface ExportPartToolArgs { /** A brepjs `.brep.ts` module source with a default-exported part function. */ code: string; /** Directory to write artifacts into (the caller owns it; artifacts persist there). */ outDir: string; /** Which formats to write (default: all of STEP/GLB/STL). */ formats?: ExportFormats; timeoutMs?: number; } /** JSON Schema for `export_part` input. */ export declare const EXPORT_PART_INPUT_SCHEMA: { type: "object"; properties: { code: { type: string; description: string; }; outDir: { type: string; description: string; }; formats: { type: string; description: string; properties: { step: { type: string; }; glb: { type: string; }; stl: { type: string; }; }; }; timeoutMs: { type: string; description: string; }; }; required: string[]; }; /** * Build a part in the sandbox and export it to `outDir` (STEP/GLB/STL). Returns the written paths; * `isError` is set when the export produced no valid solid, timed out, or crashed. The artifacts * persist in `outDir` for the agent to hand off. */ export declare function exportPartTool(args: ExportPartToolArgs): Promise;