import type { AssistantMessage } from "@earendil-works/pi-ai/compat";
import type { AgentAbortSource } from "../../core/agent-abort-provenance.ts";
export declare function abortedMessageForRendering(message: AssistantMessage, retryAttempt: number, abortSource: AgentAbortSource | undefined): AssistantMessage;
/** Result text for a tool call the model emitted but that never ran because the turn ended (senpi#5064). */
export declare const UNRUN_AFTER_ERROR = "Not run: the request failed.";
/**
 * `rendered` has been through `abortedMessageForRendering`. An abort keeps its label: when the turn ends in a
 * tool call, the card is the abort's only notice. An error stop shows its classified notice once elsewhere, so the
 * card never repeats the raw provider error.
 */
export declare function unrunToolCallText(rendered: AssistantMessage): string;
export declare function abortedErrorLabel(persisted: string | undefined, retryAttempt: number, abortSource: AgentAbortSource | undefined): string;
//# sourceMappingURL=aborted-error-label.d.ts.map