import type { AgentMessage } from "@earendil-works/pi-agent-core";
import { type AssistantMessage } from "@earendil-works/pi-ai";
/**
 * The classified, plain-language text the transcript row shows for a failed assistant turn, or
 * undefined when no classifier recognised the failure and the row shows the raw provider error.
 */
export declare function describedProviderError(message: AssistantMessage): string | undefined;
/** The live head row leaves the turn-ending notice to the trailing text run when there is one (senpi#4958). */
export declare function headNoticeShownElsewhere(message: AssistantMessage): boolean;
/**
 * Whether the turn's failed assistant row already shows classified text, so a turn-end failure line
 * would print the same failure a second time (senpi#4950). Only the text run that ends the message
 * shows the error (senpi#4954), so a message that ends in a tool call, or an aborted server fallback,
 * shows no error row and leaves the turn-end line as the only one.
 */
export declare function failureAlreadyDescribed(messages: readonly AgentMessage[]): boolean;
//# sourceMappingURL=provider-error-description.d.ts.map