/**
 * Enumeration of error codes for Server-Sent Events (SSE) related to generated answers.
 */
export declare enum GeneratedAnswerSseErrorCode {
    SseMaxDurationExceeded = 1000,
    SseFollowUpNotSupported = 1001,
    ConversationNotFound = 1002,
    SseModelsNotAvailable = 1003,
    SseInternalError = 1004,
    SseTurnLimitReached = 1005
}
interface GeneratedAnswerErrorWithSseHelpers {
    message?: string;
    code?: number;
    isRetryable?: boolean;
    isMaxDurationExceededError(): boolean;
    isFollowupNotSupportedError(): boolean;
    isConversationNotFoundError(): boolean;
    isSseModelNotAvailableError(): boolean;
    isSseInternalError(): boolean;
    isSseTurnLimitReachedError(): boolean;
}
/**
 * Maps backend error codes to frontend error codes for generated answer SSE errors.
 */
export declare function mapRunErrorCode(code?: string): GeneratedAnswerSseErrorCode;
/**
 * Decorates a generated answer error with helper predicates for SSE error codes.
 */
export declare function withGeneratedAnswerSseErrorHelpers<T extends {
    message?: string;
    code?: number;
    isRetryable?: boolean;
}>(error?: T): (T & GeneratedAnswerErrorWithSseHelpers) | undefined;
export {};
