import { HttpRequest } from '@angular/common/http'; import { NzNotificationService } from 'ng-zorro-antd/notification'; export declare const CODE_MESSAGE: Record; /** * 计算 csrf token */ export declare function getCsrfToken(salt: string): string; export declare function trimBody(req: HttpRequest): HttpRequest; export declare function trimObj(body: any): any; /** * 附加环境Token * @param req Http请求体 * @returns Http响应体 */ export declare function appendHeader(req: HttpRequest, project: string): HttpRequest; export declare function attachToken(req: HttpRequest): HttpRequest; export declare function getParams(paramName: string, req: HttpRequest): string; /** * 错误弹窗 */ export declare function showError(status: any, msg: string, notificationService: NzNotificationService): void;