import type { TerminalBlock } from "./cli/TerminalLayout.ts"; declare global { type ToolFunc = (...args: T) => Promise; interface ITool { name: string; description: string; run: ToolFunc; help?: () => Promise | void; done?: () => Promise | void; setBlock?: (block: TerminalBlock) => void; } type callback = (...args: any[]) => any; }