import { type AiConversationItemResponse, type AiConversationResponse, type AiConversationResponseList } from "@gooddata/api-client-tiger"; import { type IChatConversation, type IChatConversationError, type IChatConversationItem, type IChatSuggestionsItem } from "@gooddata/sdk-backend-spi"; import type { FormattingLocale } from "./dateFormatting/defaultDateFormatter.js"; import { type DateNormalizer } from "./dateFormatting/types.js"; export declare function convertChatConversationFromBackend(conversation: AiConversationResponse): IChatConversation; export declare function convertChatConversationItemFromBackend(item: AiConversationItemResponse, responses: AiConversationResponseList["responses"] | undefined, dateNormalizer: DateNormalizer, locale?: FormattingLocale, timezone?: string): IChatConversationItem; export declare function convertChatConversationErrorFromBackend(item: Partial<{ statusCode: number; detail: string; reason: string; }>, traceId?: string): IChatConversationError; /** * Represents AI-generated suggestions, which may include a follow-up question * and a list of actions with associated labels and queries. * * TODO: This is mock types, must be loaded from openapi when will be ready */ export type AiSuggestions = { followUpQuestion?: string; actions?: { label: string; query: string; }[]; }; export declare function convertChatSuggestionItemFromBackend(item: AiSuggestions | undefined): IChatSuggestionsItem; //# sourceMappingURL=genAIConvertor.d.ts.map