/** * `PATCH /api/config` — `body.gateway.*` section. * * Covers heartbeat, bind/customBindHost/port, tailscale, auth (mode + token + * password + rateLimit + trustedProxy), trustedProxies, allowRealIpFallback, * dangerouslyAllowHostHeaderOriginFallback, security, share, siteShare, publicUrl, webchat, * corsOrigins 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 + 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;