import type { ServerResponse } from 'node:http'; import { type AllowedHttpAuthentication } from '../auth.js'; /** * Gate a node-wide operation: return true when the caller may administer the * node (a node-operator token, or any caller when auth is disabled), otherwise * send the standard 403 and return false. `route` and `action` fill the shared * message, e.g. "POST /api/shutdown requires a node-level admin token; * agent-scoped tokens cannot stop the node." */ export declare function requireNodeAdmin(authentication: AllowedHttpAuthentication, res: ServerResponse, route: string, action: string): boolean; //# sourceMappingURL=node-admin-guard.d.ts.map