import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; import { Tool } from '@ximple/igo2-common'; import { ConfigService, RouteService, MessageService, LanguageService } from '@ximple/igo2-core'; import { AuthService } from '@ximple/igo2-auth'; import { IgoMap } from '@ximple/igo2-geo'; import { TypePermission } from './context.enum'; import { ContextsList, Context, DetailedContext, ContextPermission } from './context.interface'; export declare class ContextService { private http; private authService; private languageService; private config; private messageService; private route; context$: BehaviorSubject; contexts$: BehaviorSubject; defaultContextId$: BehaviorSubject; editedContext$: BehaviorSubject; private mapViewFromRoute; private options; private baseUrl; private contextMessage; private tools; constructor(http: HttpClient, authService: AuthService, languageService: LanguageService, config: ConfigService, messageService: MessageService, route: RouteService); get(): Observable; getById(id: string): Observable; getDetails(id: string): Observable; getDefault(): Observable; setDefault(id: string): Observable; delete(id: string): Observable; create(context: DetailedContext): Observable; clone(id: string, properties?: {}): Observable; update(id: string, context: Context): Observable; addToolAssociation(contextId: string, toolId: string): Observable; deleteToolAssociation(contextId: string, toolId: string): Observable; getPermissions(id: string): Observable; addPermissionAssociation(contextId: string, profil: string, type: TypePermission): Observable; deletePermissionAssociation(contextId: string, permissionId: string): Observable; getLocalContexts(): Observable; getLocalContext(uri: string): Observable; loadContexts(): void; loadDefaultContext(): void; loadContext(uri: string): void; setContext(context: DetailedContext): void; loadEditedContext(uri: string): void; setEditedContext(context: DetailedContext): void; getContextFromMap(igoMap: IgoMap): DetailedContext; setTools(tools: Tool[]): void; private handleContextMessage; private getContextByUri; private readParamsFromRoute; private getPath; private handleError; private handleContextsChange; private addContextToList; private findContext; }