import { ICosmographInternalApi } from "../internal"; import { CosmographLinkInput, CosmographPointInput } from "../config/interfaces/data"; export declare class CosmographDataManager { private _; private _dataUploadPromise; constructor(_: ICosmographInternalApi); get dataUploadPromise(): Promise | null; dataReady(): Promise; updateGraphData(pointsChanged: boolean, linksChanged: boolean): Promise; private _addPreparedData; addPoints(points: CosmographPointInput[]): Promise; addLinks(links: CosmographLinkInput[]): Promise; /** * Removes the points specified by the given indices from the current graph. * * @param indices - The indices of the points to remove. * @param removeAttachedLinks - Whether to also remove any links attached to the removed points. Defaults to `true`. * @remarks Method will not remove points if removing passed indices will lead to empty graph, or if it's only point in the graph. * @returns A Promise that resolves when the points have been removed. */ removePointsByIndices(indices: number[], removeAttachedLinks?: boolean): Promise; /** * Removes the points specified by the given IDs from the current graph. * * @param ids - The IDs of the points to remove. * @returns A Promise that resolves when the points have been removed. */ removePointsByIds(ids: string[]): Promise; /** * Removes the links specified by the given point ID pairs from the current graph. * * @param pairs - An array of point ID pairs representing the links to remove. * @returns A Promise that resolves when the links have been removed. */ removeLinksByPointIdPairs(pairs: [string, string][]): Promise; /** * Removes the links specified by the given point index pairs from the current graph. * * @param pairs - An array of point index pairs representing the links to remove. * @returns A Promise that resolves when the links have been removed. */ removeLinksByPointIndicesPairs(pairs: [number, number][]): Promise; private _uploadData; private _uploadPoints; private _uploadLinks; private _executeUpload; private _preservePointPositionsIfEnabled; private _uploadAndValidateGraphData; private _uploadAndValidateLinksData; private _removePointsInCosmos; private _removeLinks; private _triggerGraphUpdated; }