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. * * A validation error the tool's own validation produced (input, request * context or output) is not the tool's output, so the mapping is skipped and * the error's model-facing form, without the raw values the full error quotes, * is returned as an `error-json` output, matching server tools. A result that * only has a validation error's fields is mapped like any other result. * * 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