/**
 * `agents webhooks` — localhost receiver for signed public webhook ingress.
 *
 * The receiver intentionally binds localhost by default. Public exposure is a
 * separate `agents funnel up <host>` step so the HTTP process can be tested and
 * rotated without changing the Tailscale Funnel config.
 */
import type { Command } from 'commander';
import type { Server } from 'http';
import type { Socket } from 'net';
/** Stop accepting requests and destroy persistent connections so shutdown is bounded. */
export declare function closeWebhookServer(server: Server, sockets: Set<Socket>): Promise<void>;
export declare function registerWebhooksCommand(program: Command): void;
