export interface CurrentUserJourney { contentId: string; contentType: string; language?: string; timestamp: string; } export interface RequestParams { sections: string[]; query?: string; siteId?: string; language?: string; pageId?: string; isUserQuery?: boolean; variationId?: string; userJourneyData?: { currentUserJourney: CurrentUserJourney[]; subjectKey: string; source: string; }; } export interface SectionPayload { sectionData: any; sectionName: string; sectionType: string; } export type ErrorType = 'ServiceError' | 'QuotaExceeded' | 'NoContent'; export interface ErrorPayload { errorMessage?: string; errorType: ErrorType; } export declare class DGEServiceConnector { static fetchDataStream(params: RequestParams, onData?: (data: SectionPayload) => void, onError?: (error: ErrorPayload) => void, onComplete?: (collectedData: SectionPayload[]) => void): Promise; }