import * as Ogma from '@linkurious/ogma'; import { GraphSchemaTypeWithAccess, ItemFieldsCaptions } from '@linkurious/rest-client'; import { LKOgma } from '../..'; export interface CaptionState { node: ItemFieldsCaptions; edge: ItemFieldsCaptions; } export declare class CaptionsViz { private _nodeMaxTextLength; private _edgeMaxTextLength; nodesCaptionsRule: Ogma.StyleRule; edgesCaptionsRule: Ogma.StyleRule; private _ogma; private _captionSchema; private _graphSchema; constructor(ogma: LKOgma, _nodeMaxTextLength: number | undefined, _edgeMaxTextLength: number | undefined); set graphSchema(graphSchema: { node: Array; edge: Array; }); /** * Refresh the schema */ refreshSchema(schema: CaptionState): void; /** * Refresh visualization captions rules */ initVizCaptions(schema: CaptionState): Promise; /** * Create or update nodeCaptionRule */ updateNodeCaptions(schema?: ItemFieldsCaptions): Promise | void; /** * Create or update edgeCaptionRule */ updateEdgeCaptions(schema?: ItemFieldsCaptions): Promise | void; }