import { type CapabilityErrorCode } from '@xopcai/gateway-contract'; import type { Config } from '../config/schema.js'; import { type GatewayCredential } from '../gateway/credential.js'; export declare class GatewayHttpError extends Error { readonly status: number; readonly code?: CapabilityErrorCode | undefined; readonly operationId?: string | undefined; readonly hint?: string | undefined; constructor(status: number, code?: CapabilityErrorCode | undefined, operationId?: string | undefined, hint?: string | undefined); } export type GatewayHttpClientOptions = { baseUrl: string; credential?: GatewayCredential; }; export declare class GatewayHttpClient { private readonly opts; constructor(opts: GatewayHttpClientOptions); private headers; getJson(path: string, signal?: AbortSignal): Promise; postJson(path: string, data: unknown, signal?: AbortSignal): Promise; } export declare function resolveGatewayHttpBaseUrl(config: Config, override?: string): string; export declare function createGatewayHttpClientFromConfig(params: { config?: Config; gatewayUrl?: string; gatewayCredential?: GatewayCredential; }): GatewayHttpClient;