import { GraphNavigatorSettings } from '../../../models/graph-navigator'; import { Service } from '../../../providers/service/service'; /** * Service for managing the per-repository graph-navigator settings, which configure how the diagram * resolves types, labels and links. */ export declare class GraphNavigatorService implements Service { private readonly graphNavigatorRestService; private readonly graphNavigatorContextService; /** * Loads the settings of a repository. * * @param repositoryId - The id of the repository. * @returns A Promise that resolves to the current settings. */ getSettings(repositoryId: string): Promise; /** * Uploads a Turtle settings file for a repository and stores the new settings in the context. * * @param repositoryId - The id of the repository. * @param file - The Turtle settings file. * @returns A Promise that resolves to the new settings. * @throws {GraphNavigatorSettingsUploadError} When the backend rejects the file. */ uploadSettings(repositoryId: string, file: File): Promise; /** * Deletes the settings of a repository, so the defaults are used. * * @param repositoryId - The id of the repository. */ deleteSettings(repositoryId: string): Promise; /** * Exports the settings of a repository as Turtle. * * @param repositoryId - The id of the repository. * @returns A Promise that resolves to the settings as Turtle text. */ exportSettings(repositoryId: string): Promise; private updateContext; }