/** * Shared tool-result utilities. * * Provides helpers for appending text to tool results and stripping * directive hints from text and messages. */ /** * Append text to the first text content item in a tool result, * or push a new text item if none exists. */ export declare function appendTextToToolResult(result: any, text: string): void; /** * Strip directive hints from text (including legacy [Hint:] format). */ export declare function stripDirectives(text: string): string; /** * Strip directive hints from tool result content (string or text-part array). */ export declare function stripDirectivesFromContent(content: string | Array<{ type: string; text?: string; }>): string | Array<{ type: string; text?: string; }>; /** * Remove directive hints from an array of messages. * Returns the sanitized messages and a flag indicating whether anything changed. */ export declare function stripDirectivesFromMessages(messages: any[]): { messages: any[]; changed: boolean; }; //# sourceMappingURL=tool-utils.d.ts.map