import type { CompiledToolDefinition } from "#compiler/manifest.js"; import type { CompiledModuleMap } from "#compiler/module-map.js"; import type { ResolvedToolDefinition } from "#runtime/types.js"; /** * Resolves one compiled authored tool into a runtime-owned definition * with live callbacks reattached from the authored module. * * Optional hooks (`needsApproval`, plus an optional Standard Schema * `inputSchema`) are extracted when * declared and validated to have the expected shape; any type mismatch * raises a {@link ResolveAgentError} so typos surface at resolve time * instead of at first tool call. */ export declare function resolveToolDefinition(definition: CompiledToolDefinition, moduleMap: CompiledModuleMap, nodeId: string | undefined): Promise;