export type DeserializedSearchResult = { id: string; snippet: { pre: string; text: string; post: string; }; source: string; url?: string; title?: string; metadata: Record; }; export type DocMetadata = { name: string; value: string; }; export type SearchResponse = { document: SearchResponseDoc[]; response: SearchResponseResult[]; summary: SearchResponseSummary[]; }; type SearchResponseDoc = { id: string; metadata: DocMetadata[]; }; type SearchResponseResult = { corpusKey: { corpusId: string; customerId: string; dim: string[]; }; documentIndex: string; resultLength: number; resultOffset: number; score: number; text: string; }; type SearchResponseSummary = { text?: string; status?: string; }; declare const SUMMARY_LANGUAGES: readonly ["auto", "eng", "deu", "fra", "zho", "kor", "ara", "rus", "tha", "nld", "ita", "por", "spa", "jpn", "pol", "tur", "heb", "vie", "ind", "ces", "ukr", "ell", "fas", "hin", "urd", "swe", "ben", "msa", "ron"]; export type SummaryLanguage = (typeof SUMMARY_LANGUAGES)[number]; export type SearchError = { message?: string; response?: { data?: { message?: string; }; }; }; export type ChatTurn = { id: string; question: string; answer: string; results: DeserializedSearchResult[]; }; export {};