/**
 * Gateway protocol types — Streamable HTTP / SSE transport.
 *
 * All client → server communication uses standard HTTP (POST/GET/PATCH/DELETE).
 * Server → client streaming uses SSE (text/event-stream).
 */
export interface ApiResponse<T = unknown> {
    ok: boolean;
    payload?: T;
    error?: ApiError;
}
export interface ApiError {
    code: string;
    message: string;
}
export interface SSEEvent {
    id: string;
    event: string;
    data: unknown;
}
export interface GatewayConfig {
    host: string;
    port: number;
    token?: string;
    verbose?: boolean;
}
export declare function apiOk<T>(payload: T): ApiResponse<T>;
export declare function apiError(code: string, message: string): ApiResponse<never>;
