import type { Processor, ProcessAPIErrorArgs, ProcessAPIErrorResult } from './index.js';
/**
 * Handles known "assistant response prefill" errors reactively.
 *
 * When an LLM API call fails because the conversation ends with an assistant
 * message and the provider interprets it as pre-filling, this processor appends
 * a `continue` system reminder message and signals a retry.
 *
 * This is a reactive complement to {@link TrailingAssistantGuard}, which
 * proactively appends a user turn for providers it can identify up front
 * (Anthropic under native structured output, Gemini 3+). `PrefillErrorHandler`
 * catches the rejection whenever that identification falls short, e.g. Anthropic
 * outside structured output, Claude models before 4.6 under structured output
 * (the guard keeps their prefill), or a gateway whose model id hides the provider.
 *
 * @see https://github.com/mastra-ai/mastra/issues/13969
 */
export declare class PrefillErrorHandler implements Processor<'prefill-error-handler'> {
    readonly id: 'prefill-error-handler';
    readonly name = "Prefill Error Handler";
    processAPIError({ error, retryCount, sendSignal }: ProcessAPIErrorArgs): Promise<ProcessAPIErrorResult | void>;
}
//# sourceMappingURL=prefill-error-handler.d.ts.map