/** * The one bind guard every TS network server calls before `listen()`. * Mirrors Python's `praisonaiagents.agent.launch_security.require_bind_token`. */ /** True for localhost, ::1 and the whole 127.0.0.0/8 range. */ export declare function isLoopbackHost(host: string): boolean; /** Loopback may run keyless; a non-loopback host without a token throws. */ export declare function requireBindToken(host: string, token: string | undefined | null, opts: { server: string; hint: string; }): void; /** Constant-time token check; a missing or empty value never matches. */ export declare function tokenMatches(supplied: unknown, expected: string | undefined | null): boolean;