/**
 * ReAct strategy — Thought → Action → Observe text protocol with JSON
 * fallback for models that emit JSON tool calls instead of the standard
 * ```tool_call``` block.
 *
 * Port of `preste/standalone-react-loop.ts` (commit `fcde10a` — fix-G JSON
 * fallback). Pure data-flow plug-in : invokes `ctx.llmFn` + `ctx.tools.execute`,
 * does NOT touch SDK ports.
 *
 * @public @experimental @since 2.0.0
 */
import type { AgentStrategy, StrategyToolCall } from "./types.js";
/**
 * Parse a tool call out of the standard ```tool_call``` text block.
 *
 * Returns null if no block is found, the JSON is malformed, or the shape
 * is invalid (missing name/arguments).
 *
 * @public
 */
export declare function parseReactToolCall(content: string): StrategyToolCall | null;
/**
 * JSON-fallback parser for models that emit tool calls in non-standard
 * formats (DeepSeek-v4-flash, raw JSON, ```toolcall``` / ```json``` fences).
 *
 * @public
 */
export declare function tryParseJsonToolCallFallback(content: string): {
    name: string;
    arguments: Record<string, unknown>;
} | null;
/**
 * Factory for the ReAct strategy.
 *
 * @public @experimental @since 2.0.0
 */
export declare function createReactStrategy(): AgentStrategy;
//# sourceMappingURL=react.d.ts.map