import type { ToolCall } from '../types/index.js';
/**
 * Internal JSON tool call parser
 * Note: This is now an internal utility. Use tool-parser.ts for public API.
 * Type-preserving: Preserves object types in memory while converting to string for processing
 */
/**
 * Detects malformed JSON tool call attempts and returns error details
 * Returns null if no malformed tool calls detected
 * Type-preserving: Accepts unknown type, converts to string for processing
 */
export declare function detectMalformedJSONToolCall(content: unknown): {
    error: string;
    examples: string;
} | null;
/**
 * Parses JSON-formatted tool calls from content
 * Type-preserving: Preserves object types in memory while converting to string for processing
 * This is an internal function - use tool-parser.ts for public API
 */
export declare function parseJSONToolCalls(content: unknown): ToolCall[];
/**
 * Cleans content by removing tool call JSON blocks
 * Type-preserving: Accepts unknown type, converts to string for processing
 * This is an internal function - use tool-parser.ts for public API
 */
export declare function cleanJSONToolCalls(content: unknown, toolCalls: ToolCall[]): string;
//# sourceMappingURL=json-parser.d.ts.map