import type { ToolResultMessage } from "@mariozechner/pi-ai"; import { type Static } from "@sinclair/typebox"; import type { ToolExecutionResult, ToolResultContract, ToolResultShallowObject } from "@/types"; export declare const toolReturnOutcomeSchema: import("@sinclair/typebox").TObject<{ toolCallId: import("@sinclair/typebox").TString; toolName: import("@sinclair/typebox").TString; isError: import("@sinclair/typebox").TBoolean; timestamp: import("@sinclair/typebox").TNumber; text: import("@sinclair/typebox").TString; }>; export type ToolReturnOutcome = Static; export declare const toolReturnOutcome: ToolResultContract; /** * Builds a strongly typed tool execution payload from a ToolResultMessage. * Expects: message content follows the tool text block convention. */ export declare function toolExecutionResultOutcome(toolMessage: ToolResultMessage): ToolExecutionResult; /** * Builds a strongly typed tool execution payload from a ToolResultMessage and structured result object. * Expects: typedResult matches the caller-defined return schema. */ export declare function toolExecutionResultOutcomeWithTyped(toolMessage: ToolResultMessage, typedResult: TResult): ToolExecutionResult; export declare function toolMessageTextExtract(toolMessage: ToolResultMessage): string; //# sourceMappingURL=toolReturnOutcome.d.ts.map