import { AgencyFunction } from "./agencyFunction.js"; import type { FuncParam, ToolDefinition, ToolMarkers } from "./agencyFunction.js"; export type CreatedToolDefinition = Pick & { inputSchema: unknown; params: Omit[]; markers: ToolMarkers; }; /** The executor's normal function reference carries its partial bindings. */ export type CreatedTool = { definition: CreatedToolDefinition; executor: AgencyFunction; }; /** Build a callable from compiled metadata and a registered executor that * accepts the resolved arguments as one record. */ export declare function createTool(definition: CreatedToolDefinition, executor: AgencyFunction): AgencyFunction; /** The executor may be an unresolved reference while a parent carries a * child's checkpoint. Preserve it without requiring its module here. */ export declare function restoreCreatedTool(value: unknown): AgencyFunction;