import { AiSearchError } from '@redocly/theme/core/constants';
/**
 * SSE protocol prefix used by Server-Sent Events
 * Following the SSE specification: https://html.spec.whatwg.org/multipage/server-sent-events.html
 */
export declare const SSE_DATA_PREFIX = "data: ";
/**
 * Maximum number of resources to display in the search results
 * Limits UI clutter while providing sufficient context
 */
export declare const MAX_DISPLAYED_RESOURCES = 5;
/**
 * Default headers for AI search API requests
 */
export declare const AI_SEARCH_REQUEST_HEADERS: {
    readonly 'Content-Type': 'application/json';
};
export declare const SSE_EVENTS: {
    readonly MESSAGE_ID: 'messageId';
    readonly SOURCES: 'sources';
    readonly ANSWER: 'answer';
    readonly TOOL_CALL: 'toolCall';
    readonly TOOL_RESULT: 'toolResult';
    readonly ERROR: 'error';
};
/**
 * Maps HTTP status codes to AI search error types
 */
export declare const HTTP_ERROR_MAP: Record<number, AiSearchError>;
//# sourceMappingURL=ai-search.d.ts.map