/** * Gateway API client — CLI-side HTTP client for gateway REST routes. */ import { type GatewayCredential } from '../../gateway/credential.js'; import type { GatewayClientOptions } from './gateway-client-options.js'; export type { GatewayClientOptions } from './gateway-client-options.js'; export { addGatewayClientOptions, parseGatewayClientOptions } from './gateway-client-options.js'; export interface GatewayCallResult { ok: boolean; status: number; data?: T; error?: string; durationMs: number; } export declare function resolveGatewayUrl(opts?: { url?: string; configPath?: string; }): string; export declare function resolveGatewayCredential(opts?: { token?: string; passwordEnv?: string; credential?: GatewayCredential; configPath?: string; }): GatewayCredential | undefined; export declare function callGatewayApi(method: 'GET' | 'POST' | 'PATCH' | 'DELETE', path: string, opts?: GatewayClientOptions, body?: unknown): Promise>;