import type { AssistantMessage } from "@earendil-works/pi-ai";
import { TTSR_INJECTION_CUSTOM_TYPE } from "./types.ts";
export type TruncatableAssistantMessage = AssistantMessage;
export type ErrorShellReplacement = {
    readonly role: "assistant";
    readonly content: never[];
    readonly stopReason: "error";
    readonly errorMessage: string;
};
export interface TtsrNudgeMessage {
    readonly customType: typeof TTSR_INJECTION_CUSTOM_TYPE;
    readonly content: string;
    readonly display: false;
    readonly details: {
        readonly rules: readonly string[];
    };
}
type StreamKind = "text" | "thinking" | "tool";
export declare function buildTruncateReplacement(message: TruncatableAssistantMessage, garbageStartOffset: number, streamKind: StreamKind): TruncatableAssistantMessage;
export declare function buildErrorShellReplacement(): ErrorShellReplacement;
export declare function buildNudgeMessage(ruleName: string, ruleContent: string): TtsrNudgeMessage;
export {};
//# sourceMappingURL=remediation.d.ts.map