export interface DaemonArgs { port: number; host: string; allowUnauthenticated: boolean; } export declare function parseDaemonArgs(args: string[]): DaemonArgs; /** * Find the next bindable port at or above `from + 1`, scanning up to `limit` * ports. Returns the taken port + 1 as a best-effort fallback if the scan finds * nothing (the message is a hint, not a guarantee). */ export declare function findNextFreePort(from: number, host: string, limit?: number): Promise; /** Build the actionable serve-port-conflict message. Names the taken port, * `--port`, and a concrete next-free port to retry with. No auto-rebind — * predictability over convenience (D9). */ export declare function formatPortConflictError(port: number, host: string): Promise; export interface ServeBindGateResult { ok: boolean; message?: string; token: string | null; } /** * Fail-closed bind gate for `wigolo serve`. A non-loopback bind with no * configured token and no override refuses to start; the message names the * token env var and the override. Returns the resolved token so the caller can * hand it to the server without re-reading env. */ export declare function checkServeBindGate(args: DaemonArgs): ServeBindGateResult; export declare function runDaemon(args: string[]): void; //# sourceMappingURL=daemon.d.ts.map