import type { Tool } from '@mastra/core/tools'; /** * Apply a client tool's `toModelOutput` mapping to its execution result. * * Client tools execute locally, so their `toModelOutput` mapping must also run * locally — the function cannot be serialized over HTTP. The transformed value * is sent back to the server as `providerOptions.mastra.modelOutput` on the * tool-result part, which the server already applies when building the next * model prompt. The raw result stays in the tool-result `output`/`result` * field for storage and application logic, matching server-tool semantics. * * Returns `undefined` when the tool defines no mapping, the result is null, * or the mapping itself returns null/undefined. */ export declare function getClientToolModelOutput(clientTool: Tool, result: unknown): Promise; //# sourceMappingURL=client-tool-model-output.d.ts.map