import { Option, ReplyItem } from '../../classes'; import { PieChartComponent, BarHorizontalComponent } from '@swimlane/ngx-charts'; import { Observable } from 'rxjs'; import { DatePipe } from '@angular/common'; import { PhoneNumberPipe } from '@schoolbelle/common/phone-number'; import { ExcelService } from '@schoolbelle/common/excel'; import { RepliesService } from '../../services'; import { PartialOption } from './charts.types'; export declare class ChartsService { protected replies: RepliesService; protected excel: ExcelService; protected datePipe: DatePipe; protected phoneNumberPipe: PhoneNumberPipe; private _data; constructor(replies: RepliesService, excel: ExcelService, datePipe: DatePipe, phoneNumberPipe: PhoneNumberPipe); get(q_id: any): BarHorizontalComponent | PieChartComponent; set(q_id: string, chart: PieChartComponent | BarHorizontalComponent): void; getColor(option: Option): string; downloadCharts(elements: NodeList): Observable<{}>; chartToImageBlob(el: Node): Observable; downloadExcel(list: ReplyItem[], options: Array, title?: string): Observable; private toExcelDataInBase64; filterReplies(list: ReplyItem[], o: PartialOption): ReplyItem[]; getCheckTimestamp(li: ReplyItem, o: PartialOption): number; }