import { Environment } from '../environment'; import { ICreateAccessOptions, IApi, IUpdateOptions, IService, IDeleteOptions, IGetOptions, IDomainOptions } from './types'; import { IResponseInfo } from '../interfaces'; /** * HTTP Service(CloudBaseGW)访问服务。 * 注意:HTTP Service 模块自 v5.0.0 起已废弃,建议迁移到 EnvService 的域名与路由能力 * (如 createHttpServiceRoute / modifyHttpServiceRoute / deleteHttpServiceRoute)。 */ export declare class AccessService { private tcbService; private environment; constructor(environment: Environment); createAccess(options: ICreateAccessOptions): Promise<{ APIId: string; RequestId: string; }>; getDomainList(): Promise<{ RequestId: string; DefaultDomain: string; EnableService: boolean; ServiceSet: IService[]; }>; getAccessList(options?: IGetOptions): Promise<{ RequestId: string; APISet: IApi[]; Total: number; Limit: number; Offset: number; EnableService: boolean; }>; switchAuth(auth: boolean): Promise<{ Count: number; RequestId: string; }>; switchPathAuth(options: IUpdateOptions): Promise<{ Count: number; RequestId: string; }>; deleteAccess(options: IDeleteOptions): Promise; addCustomDomain(options: IDomainOptions): Promise; deleteCustomDomain(domain: string): Promise; private getEnvInfo; }