import type { SearchResult } from '../types/widget'; interface ContinuationReply { ai_message: { messageId: string; message: string; incomplete: boolean; sources: { title: string; url: string; }[]; actions?: { name: string; button_text: string; url: string; }[]; generation_metadata?: { continuation_available?: boolean; }; }; chat_uuid: string; restore_token: string; } interface WebMCPSearchResult { title: string; fragment: string; url: string | null; page_title?: string; score?: number; domain?: string; is_title_match?: boolean; source_type?: 'page' | 'file' | 'repository' | 'openapi'; content?: string; page?: number | null; sheet?: string; chunk_index?: number; file_path?: string; document_id?: string; } interface WebMCPDocumentReply { document_id: string; title: string; source_type: 'page' | 'file' | 'repository' | 'openapi'; url: string | null; file_path: string; total_chunks: number; chunks: { content: string; chunk_index: number; page: number | null; sheet: string; }[]; next_cursor: string | null; } export declare class BielService { private readonly pageUrl; private project; private apiKey; private errorMessage404; private errorMessage403; private errorMessageDefault; private baseUrl; private readonly explicitOrigin; constructor(project: string, errorMessage404: string, errorMessage403: string, errorMessageDefault: string, apiKey?: string, baseUrl?: string, pageUrl?: () => string); getApiOrigin(): string; private applyApiOrigin; private getHeaders; continueAnswer(chatId: string, messageId: string, restoreToken: string): Promise; getProjectDetails(signal?: AbortSignal): Promise<{ whitelabel: boolean; suggestedQuestions: string[]; initialMessage: string; filters: { title: string; }[]; think_mode: boolean; adaptive?: boolean; mcp_enabled: boolean; webmcp_enabled: boolean; mcp_server_name: string; mcp_metadata_tag: string; actions: { name: string; button_text: string; url: string; }[]; } | string>; private requestWebMCP; webMCPSearch(query: string, filterTitle?: string, signal?: AbortSignal, limit?: number): Promise<{ results: WebMCPSearchResult[]; }>; webMCPGetDocument(documentId: string, cursor?: string, limit?: number, signal?: AbortSignal): Promise; webMCPAsk(message: string, metadata?: string, signal?: AbortSignal): Promise<{ answer: string; sources: { title: string; url: string; }[]; incomplete: boolean; }>; sendFeedback(messageId: string, feedback: { reaction: 0 | 1; }): Promise; sendQuery(q: string, selected_filter_title: string, signal?: AbortSignal): Promise; searchClicked(query?: string, position?: number): Promise; getConversationMessages(chatId: string, restoreToken?: string): Promise<{ messages: { text: string; sender: 'user' | 'ai'; messageId?: string; feedback?: 0 | 1; sources?: { title: string; url: string; }[]; isPartial: boolean; incomplete?: boolean; continuationAvailable?: boolean; }[]; actions: { name: string; button_text: string; url: string; }[]; }>; } export {};