import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core'; import { FlowchartService } from '../../services/flowchart.service'; import { CallService } from '../../services/call.service'; import { Socket } from 'socket.io-client'; import { ImagiationDataQuery } from '../../services/imagiation.service'; import { PromiseEmitter } from './PromiseEmitter'; import { ModalService } from '../../services/modal.service'; import { ConsoleService } from '../../services/console.service'; import * as i0 from "@angular/core"; export interface FlowChartRef { room?: string; names: { [key: string]: string; }; multiples: { [key: string]: string; }; dataVal?: { [key: string]: any; }; dataPath: { [key: string]: string; }; conf: { sleep: number; debug: boolean; }; autoStart?: boolean; } export interface LiveModelConfigData { roomName: string; MAX_SEND_SIZE: number; LOW_PRESSURE_MS: number; BACK_OFF_MULTIPLIER: number; } export interface ChangesData { r: string; t: string; orig?: string | null; '+': Array<{ k: string; v: string; }>; '-': Array<{ k: string; v: string; }>; '*': Array<{ k: string; v: string; }>; total: number; } export declare abstract class ContextComponent implements OnInit, OnDestroy { flowchartSrv: FlowchartService; callService: CallService; modalService: ModalService; cdr: ChangeDetectorRef; consoleSrv: ConsoleService; remoteVideoRefs: QueryList; remoteAudioRefs: QueryList; log: Array; errors: Array; socketId?: string | null; userList: Array; builder: any; livemodel: any; connectionState: string; builderConfig: LiveModelConfigData; querySearchParams: ImagiationDataQuery; disconnectPromise: PromiseEmitter | null; constructor(flowchartSrv: FlowchartService, callService: CallService, modalService: ModalService, cdr: ChangeDetectorRef, consoleSrv: ConsoleService); ngOnInit(): void; getRoot(): any; abstract bindEvents(): any; processOutgoingChanges(payload: ChangesData): Promise; trackChanges(filterRoutes: Array): void; getCallServiceInstance(): import("../../services/call.service").CallServiceInstance; socketIoReconnect(config?: LiveModelConfigData): Promise; socketIoConnect(config?: LiveModelConfigData, model?: any): Promise; bindBasic(socket: Socket): void; onFlowChartLoaded(): Promise; onFlowChartUnloaded(): Promise; socketIoDisconnect(): Promise; setModel(model: any): void; loadFlowChart(flowChartRef: FlowChartRef): void; destroyModel(): Promise; connectToRoomName(roomName: string, disconnect?: boolean): Promise; setSessionStorageValue(key: string, value: string): void; getSessionStorageValue(key: string): string | null; setCookie(cname: string, cvalue: string, exdays?: number): any; getCookie(cname: string): any; deleteCookie(cname: string): any; ngOnDestroy(): Promise; readQueryParam(urlParams: URLSearchParams, name: string, type: string, defValue: any): any; readQueryparams(): void; downloadTextAsFile(filename: string, text: string): void; blob2Base64(blob: Blob): Promise; registerVideoElements(): void; registerAudioElements(): void; sleep(min: number, max?: number): Promise; playSound(argumento: string, loop?: boolean, volume?: number): void; getSessionUID(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }