#!/usr/bin/env node import Fastify from "fastify"; import { SelfHostedNodeRuntime, type SelfHostedNodeConfig, type SelfHostedNodeServiceControlResult } from "./runtime.js"; export declare function buildInstallSetupArgs(argv: string[]): string[]; export declare function buildNodeClientSetupArgs(argv: string[]): string[]; export declare function normalizeMswarmCommand(argv: string[]): { namespace: "node" | null; command: string; args: string[]; }; /** * `mswarm node install ` registers against a handle and waits for its owner * to approve; no API key is involved. The positional keeps its old meaning as a client * allowlist whenever a key is supplied, so existing install scripts are unaffected. */ export declare function buildNodeHandleSetupArgs(argv: string[]): string[] | null; export declare function buildNodeInstallSetupArgs(argv: string[]): Promise; export declare function buildSelfHostedNodeApp(runtime: SelfHostedNodeRuntime, config: SelfHostedNodeConfig): Fastify.FastifyInstance, import("http").IncomingMessage, import("http").ServerResponse, Fastify.FastifyBaseLogger, Fastify.FastifyTypeProviderDefault> & PromiseLike, import("http").IncomingMessage, import("http").ServerResponse, Fastify.FastifyBaseLogger, Fastify.FastifyTypeProviderDefault>> & { __linterBrands: "SafePromiseLike"; }; export declare function main(argv?: string[]): Promise; /** * `mswarm node uninstall` is run by a person at a terminal, so it reports in prose. * It used to dump the raw service-control record, which buried the only two things * that matter: whether the daemon is gone, and whether the gateway was told. */ export declare function formatNodeUninstallSummary(result: SelfHostedNodeServiceControlResult, gateway: { notified: boolean; error?: string; }): string; export declare function isSelfHostedNodeDirectRun(argvEntry: string | undefined, moduleUrl: string): boolean; //# sourceMappingURL=server.d.ts.map