/**
 * `PATCH /api/config` — `body.gateway.*` section.
 *
 * Covers heartbeat, bind/customBindHost/port, tailscale, auth (mode + token +
 * password + rateLimit + trustedProxy), trustedProxies, allowRealIpFallback,
 * dangerouslyAllowHostHeaderOriginFallback, security, share, corsOrigins,
 * maxSseConnections, and channelConnectDefer{Mode,Ids,SkipIds}.
 *
 * Validation policy: each subsection that can reject rejects with a 400 and a
 * specific `message`. The dispatcher converts these into `c.json(...)`.
 *
 * Initial-state branches use the same literal defaults the inline code did
 * (loopback + port 18790 + 1800s heartbeat + 100 SSE conn + empty CORS) so
 * a brand-new install gets a working gateway after the first PATCH.
 */
import type { Config } from '../../../../config/schema.js';
import { type PatchResult } from './result.js';
export declare function applyGatewayPatch(config: Config, body: any): PatchResult;
