import { Analysis } from './Analysis.js'; import type { CounterType, DifferentType } from './types/types.js'; interface GetAnalysesOptions { /** * Array of ids to filter the analyses. The ids could be either the analysis id or the spectrum id * If it mathces the analysis id, all the spectra of the analysis will be included * If it matches the spectrum id, only the spectrum will be included */ ids?: string[]; } export declare class AnalysesManager { analyses: Analysis[]; constructor(); static fromJSON(json: any): AnalysesManager; addAnalysis(analysis: Analysis): void; /** * * @param options * @returns */ getAnalyses(options?: GetAnalysesOptions): Analysis[]; getSpectra(): import("cheminfo-types").MeasurementXY[]; getAnalysisBySpectrumId(id: string): Analysis | undefined; getSpectrumById(id: string): import("cheminfo-types").MeasurementXY | undefined; /** * Get an array of objects (key + count) of all the titles */ getDistinctTitles(): CounterType[]; /** * Get an array of objects (key + count) of all the units */ getDistinctUnits(): CounterType[]; /** * Get an array of objects (key + unit + label + count) of all the units */ getDistinctLabelUnits(): { key: string; units: string; label: string; count: number; }[]; /** * Get an array of objects (key + count) of all the labels */ getDistinctLabels(): CounterType[]; /** * Get an array of objects (key + count) of all the dataTypes */ getDistinctDataTypes(): CounterType[]; /** * Get an array of objects (key + count) of all the meta */ getDistinctMeta(): DifferentType[]; removeAllAnalyses(): void; /** * Remove the analysis from the AnalysesManager for the specified id * @param id */ removeAnalysis(id: string): Analysis[] | undefined; /** * Returns the index of the analysis in the analyses array * @param id */ getAnalysisIndex(id: string): number | undefined; /** * Checks if the ID of an analysis exists in the AnalysesManager * @param id */ includes(id: string): boolean; } export {}; //# sourceMappingURL=AnalysesManager.d.ts.map