/** * 自定义 API 请求函数,由外部注入,替代 TC3 签名发请求。 * 入参对齐 CAPI 模式:service + action + version + region + payload。 * 返回腾讯云 API 响应中 Response 字段的内容(已解包,不含 Response 包装层)。 */ export type CloudApiRequestFn = (params: { service: string; action: string; version: string; region: string; payload: Record; }) => Promise; export declare class CloudBaseContext { readonly secretId: string; readonly secretKey: string; readonly token: string; readonly proxy: string; readonly envId: string; readonly region: string; readonly envType: string; readonly useInternalEndpoint?: boolean; readonly internalEndpointRegion?: string; readonly requestFn?: CloudApiRequestFn; constructor({ secretId, secretKey, token, proxy, region, envType, useInternalEndpoint, internalEndpointRegion, requestFn }: { secretId?: string; secretKey?: string; token?: string; proxy?: string; region?: string; envType?: string; useInternalEndpoint?: boolean; internalEndpointRegion?: string; requestFn?: CloudApiRequestFn; }); isInternalEndpoint(): boolean; getInternalEndpointRegion(): string; }