import type { LoadedCustomTool } from '../types/custom-tools.js';
import type { ToolEntry } from '../types/index.js';
/**
 * Compose a registry-ready `ToolEntry` from a loaded custom tool.
 *
 * Mirrors how built-in tools are constructed: a `tool()` carrying the JSON
 * schema, plus a synthesized handler, validator, formatter, and a mode-aware
 * `approval` policy resolved from the tool's declared approval mode.
 */
export declare function buildToolEntry(loaded: LoadedCustomTool, projectRoot: string): ToolEntry;
//# sourceMappingURL=build-tool.d.ts.map