import { ApplicationErrorBase, CurlResFormatEnum, FreelogContext, IRestfulWebApi } from '../../index'; declare const _default: { /** * 响应成功的消息 * @param data */ success(this: FreelogContext, data: object | any[] | string | number | boolean): FreelogContext; /** * 错误响应 * @param errorInfo */ error(this: FreelogContext, errorInfo: ApplicationErrorBase | Error | string | undefined): void; /** * 验证参数 * @return {exports} */ validateParams(this: FreelogContext): FreelogContext; /** * 是否是登录用户 */ isLoginUser(this: FreelogContext): boolean; /** * 是否是内网请求 */ isInternalClient(this: FreelogContext): boolean; /** * 是否是官方后台审核账号 */ isOfficialAuditAccount(this: FreelogContext): boolean; /** * 是否官方审核账户 */ validateOfficialAuditAccount(this: FreelogContext): FreelogContext; /** * 访客身份认证与授权 * @param identityType */ validateVisitorIdentity(this: FreelogContext, identityType?: number): FreelogContext; /** * 实体空值校验 * @param entity * @param options */ entityNullObjectCheck(this: FreelogContext, entity: object | null, options?: { msg?: string | undefined; data?: any; } | undefined): FreelogContext; /** * 用户身份ID与实体的用户属性之间是否匹配校验 * @param entity * @param options */ entityNullValueAndUserAuthorizationCheck(this: FreelogContext, entity: object | null, options?: { msg?: string | undefined; data?: any; property?: string | undefined; } | undefined): FreelogContext; /** * 内部服务restful-url前缀部分 */ readonly webApi: IRestfulWebApi; /** * 修复中括号无法被正确的编码错误 * @param str */ fixedEncodeURI(str: string): string; /** * 内部curl请求,用户跨服务api调用 * @param url * @param options * @param resFormat */ curlIntranetApi(this: FreelogContext, url: string, options?: object | undefined, resFormat?: CurlResFormatEnum): Promise; }; export default _default;