import type { ToolDefinition } from "@opencode-ai/plugin"; /** * Patch tool arg schemas so that `.describe()` and `.meta()` survive * cross-Zod-instance JSON Schema serialization. * * OpenCode's host Zod can't see descriptions set by the plugin's Zod. * This patches `_zod.toJSONSchema` on each arg to use the plugin's own * `tool.schema.toJSONSchema`, which preserves all metadata. */ export declare function normalizeToolArgSchemas>(toolDefinition: T): T; export interface OpenCodeArgumentPreparation { hashlineEffective?: boolean; } /** Prepare raw OpenCode arguments against the schema arm registered for this session. */ export declare function prepareOpenCodeArguments(toolName: string, rawArguments: unknown, preparation?: OpenCodeArgumentPreparation): Record; declare function prepareToolMap(tools: Record, preparation?: OpenCodeArgumentPreparation): Record; /** Normalize tool definitions and attach raw-argument preparation. */ export declare function normalizeToolMap(tools: Record, preparation?: OpenCodeArgumentPreparation): Record; /** Attach argument preparation without changing emitted schema metadata. */ export { prepareToolMap }; //# sourceMappingURL=normalize-schemas.d.ts.map