/** * How a denied tool result is kept from the model on `PostToolUse`. * * The CLI accepts `updatedToolOutput` for an MCP tool in any shape. For a * built-in tool it validates the replacement against that tool's output * schema, and a mismatch sends the **original** result to the model without * telling the SDK. The schemas are not published, so only tools whose shape * an integration test drives through the bundled CLI are listed here; every * other tool is stopped instead (`continue: false`). */ /** Built-in tools whose denied result is replaced. Every `mcp__` tool is replaced too. */ export declare const REPLACEABLE_BUILTIN_TOOLS: ReadonlySet; /** Whether a denied result from `toolName` is replaced rather than stopping the run. */ export declare function canReplaceResult(toolName: string): boolean; /** * Every text block in an authored tool's `CallToolResult`, joined in order. * Never shortened; non-text blocks are skipped. */ export declare function callToolResultText(result: unknown): string; /** * The text a screen reads from a tool's result. Never shortened. * * MCP text blocks in order, Bash's `stdout` and `stderr`, Read's file * content, and for anything else the whole result serialized as JSON. */ export declare function toolResultText(toolName: string, response: unknown): string; /** * An `updatedToolOutput` carrying `text`, or `undefined` when the CLI would * not accept one for `toolName`. */ export declare function replacementOutput(toolName: string, response: unknown, text: string): unknown;