import type { Context } from '@deepseek-ai/cordis'; import type { Agent } from '@deepseek-ai/dsh-agent'; import { type LlmFailure } from '@deepseek-ai/dsh-llm'; /** Only malformed model-authored JSON, before any tool in that response was dispatched. */ export declare function malformedToolName(failure: LlmFailure): string | undefined; /** Retry the current native request twice, retaining all earlier tool receipts. */ export declare function installMalformedToolRetry(ctx: Context, owns: (agent: Agent) => boolean): () => void; //# sourceMappingURL=malformed-tool-retry.d.ts.map