import { AxiosInstance, AxiosRequestConfig } from 'axios'; import { EntityData } from '../../app'; import { EntityTypeName } from '../../model/ModelTypeCheck'; import { Entity } from '../../model/interfaces'; import { Hierarchy } from '../../model/interfaces/Hierarchy'; import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder'; import { JSTreeNode } from '../../utils/olsApiTypes'; export declare const HIERARCHY_WIDGET_DEFAULT_VALUES: { readonly INCLUDE_OBSOLETE_ENTITIES: false; readonly PREFERRED_ROOTS: false; readonly KEEP_EXPANSION_STATES: false; readonly SHOW_SIBLINGS_ON_INIT: false; readonly USE_LEGACY: false; readonly WRAP: false; readonly TARGET_IRI: undefined; readonly SHOW_HEADER: true; readonly SHOW_COMPARISON_TITLE_IN_HEADER: true; readonly COLOR_UNION: "#ff991c"; readonly COLOR_A: "#139ec4"; readonly COLOR_B: "#5000C0"; }; export declare class OlsHierarchyApi implements HierarchyBuilder { protected axiosInstance: AxiosInstance; private entityService; private ontologyService; constructor(api: string | AxiosInstance); protected makeCall(url: string, config: AxiosRequestConfig | undefined, useLegacy: boolean): Promise; getAncestors(iri: string, entityType: EntityTypeName, ontologyId: string, useLegacy: boolean | undefined, includeObsoleteEntities: boolean | undefined, parameter: string | undefined): Promise; getJSTree(iri: string, entityType: EntityTypeName, ontologyId: string, parameter: string | undefined): Promise; getChildren(iri: string, entityType: EntityTypeName, ontologyId: string, includeObsoleteEntities: boolean | undefined, useLegacy: boolean | undefined, parameter: string): Promise; getRootEntities(entityType: EntityTypeName, ontologyId: string, preferredRoots?: boolean, includeObsoleteEntities?: boolean, useLegacy?: boolean, parameter?: string): Promise; buildHierarchyWithIri(props: BuildHierarchyProps & HierarchyIriProp): Promise; jsTreeNodeToEntityData(jsTreeNode: JSTreeNode): EntityData; entityToEntityData(entity: Entity): EntityData; buildRootHierarchy(props: { ontologyId: string; entityType: EntityTypeName; } & BuildHierarchyProps): Promise; buildHierarchyWithEntity(props: { mainEntity: Entity; ontologyId: string; entityType: EntityTypeName; } & BuildHierarchyProps): Promise; loadHierarchyChildren(props: LoadHierarchyChildrenProps): Promise; }