/** * Gateway HTTP protocol types. * * All client → server communication uses standard HTTP (POST/GET/PATCH/DELETE). */ export interface ApiResponse { ok: boolean; payload?: T; error?: ApiError; } export interface ApiError { code: string; message: string; } export interface GatewayConfig { host: string; port: number; token?: string; verbose?: boolean; } export declare function apiOk(payload: T): ApiResponse; export declare function apiError(code: string, message: string): ApiResponse;