import * as i0 from '@angular/core'; import { Injector } from '@angular/core'; import { HttpClient, HttpResponse, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; declare class AbpModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class TokenService { getToken(): string; getTokenCookieName(): string; clearToken(): void; setToken(authToken: string, expireDate?: Date): void; getRefreshToken(): string; getRefreshTokenCookieName(): string; clearRefreshToken(): void; setRefreshToken(refreshToken: string, expireDate?: Date): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class PermissionCheckerService { isGranted(permissionName: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class FeatureCheckerService { get(featureName: string): abp.features.IFeature; getValue(featureName: string): string; isEnabled(featureName: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class LocalizationService { get languages(): abp.localization.ILanguageInfo[]; get currentLanguage(): abp.localization.ILanguageInfo; localize(key: string, sourceName: string): string; getSource(sourceName: string): (...key: string[]) => string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class LogService { debug(logObject?: any): void; info(logObject?: any): void; warn(logObject?: any): void; error(logObject?: any): void; fatal(logObject?: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class MessageService { info(message: string, title?: string, options?: any): any; success(message: string, title?: string, options?: any): any; warn(message: string, title?: string, options?: any): any; error(message: string, title?: string, options?: any): any; confirm(message: string, title?: string, callback?: (result: boolean, info?: any) => void, options?: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class AbpMultiTenancyService { get isEnabled(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class NotifyService { info(message: string, title?: string, options?: any): void; success(message: string, title?: string, options?: any): void; warn(message: string, title?: string, options?: any): void; error(message: string, title?: string, options?: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class AbpSessionService { get userId(): number | undefined; get tenantId(): number | undefined; get impersonatorUserId(): number | undefined; get impersonatorTenantId(): number | undefined; get multiTenancySide(): abp.multiTenancy.sides; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SettingService { get(name: string): string; getBoolean(name: string): boolean; getInt(name: string): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class UtilsService { getCookieValue(key: string): string; setCookieValue(key: string, value: string, expireDate?: Date, path?: string, domain?: string, attributes?: any): void; deleteCookie(key: string, path?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class AbpUserConfigurationService { private _http; constructor(_http: HttpClient); initialize(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface IValidationErrorInfo { message: string; members: string[]; } interface IErrorInfo { code: number; message: string; details: string; validationErrors: IValidationErrorInfo[]; } interface IAjaxResponse { success: boolean; result?: any; targetUrl?: string; error?: IErrorInfo; unAuthorizedRequest: boolean; __abp: boolean; } declare class AbpHttpConfigurationService { private _messageService; private _logService; constructor(_messageService: MessageService, _logService: LogService); forceHeaderCookieWrite: boolean; localizationCultureHeaderName: string; defaultError: IErrorInfo; defaultError401: IErrorInfo; defaultError403: IErrorInfo; defaultError404: IErrorInfo; logError(error: IErrorInfo): void; showError(error: IErrorInfo): any; handleTargetUrl(targetUrl: string): void; handleUnAuthorizedRequest(messagePromise: any, targetUrl?: string): void; handleNonAbpErrorResponse(response: HttpResponse): void; handleAbpResponse(response: HttpResponse, ajaxResponse: IAjaxResponse): HttpResponse; getAbpAjaxResponseOrNull(response: HttpResponse): IAjaxResponse | null; handleResponse(response: HttpResponse): HttpResponse; blobToText(blob: any): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class AbpHttpInterceptor implements HttpInterceptor { private _injector; protected configuration: AbpHttpConfigurationService; private _tokenService; private _utilsService; private _logService; constructor(configuration: AbpHttpConfigurationService, _injector: Injector); intercept(request: HttpRequest, next: HttpHandler): Observable>; protected tryGetRefreshTokenService(): Observable; private isRefreshing; private refreshTokenSubject; private tryAuthWithRefreshToken; protected normalizeRequestHeaders(request: HttpRequest): HttpRequest; protected addXRequestedWithHeader(headers: HttpHeaders): HttpHeaders; protected addAspNetCoreCultureHeader(headers: HttpHeaders): HttpHeaders; protected addAcceptLanguageHeader(headers: HttpHeaders): HttpHeaders; protected addTenantIdHeader(headers: HttpHeaders): HttpHeaders; protected addAuthorizationHeaders(headers: HttpHeaders): HttpHeaders; protected handleSuccessResponse(event: HttpEvent): Observable>; protected handleErrorResponse(error: any): Observable; private itemExists; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare abstract class RefreshTokenService { /** * Try to authenticate with refresh token and return if auth succeed */ abstract tryAuthWithRefreshToken(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { AbpHttpConfigurationService, AbpHttpInterceptor, AbpModule, AbpMultiTenancyService, AbpSessionService, AbpUserConfigurationService, FeatureCheckerService, LocalizationService, LogService, MessageService, NotifyService, PermissionCheckerService, RefreshTokenService, SettingService, TokenService, UtilsService }; export type { IAjaxResponse, IErrorInfo, IValidationErrorInfo };