import { HttpClient } from '@angular/common/http'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Observable } from 'rxjs/Observable'; import { ConfigService, RouteService, LanguageService } from '../../core'; import { AuthService } from '../../auth'; import { IgoMap } from '../../map'; import { ToolService } from '../../tool/shared'; import { TypePermission } from './context.enum'; import { ContextsList, Context, DetailedContext, ContextPermission } from './context.interface'; export declare class ContextService { private http; private authService; private languageService; private toolService; private config; private route; context$: BehaviorSubject; contexts$: BehaviorSubject; defaultContextId$: BehaviorSubject; editedContext$: BehaviorSubject; private mapViewFromRoute; private options; private baseUrl; constructor(http: HttpClient, authService: AuthService, languageService: LanguageService, toolService: ToolService, config: ConfigService, route: RouteService); get(): Observable; getById(id: string): Observable; getDetails(id: string): Observable; getDefault(): 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: any): 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; private getContextByUri(uri); private readParamsFromRoute(); private getPath(file); private handleError(res, uri); private handleContextsChange(contexts, keepCurrentContext?); private addContextToList(context); private findContext(context); }