/** * postgres-mcp - Tool Scope Map * * Builds a reverse lookup from tool name to required OAuth scope * by inverting TOOL_GROUPS × TOOL_GROUP_SCOPES. Computed once at * module load for O(1) per-call lookup. */ import type { StandardScope } from "./scopes.js"; /** * Get the required scope for a tool by name. * * @param toolName - The MCP tool name (e.g., "pg_read_query") * @returns The required scope, or "read" as a safe default for unknown tools */ export declare function getRequiredScope(toolName: string): StandardScope; /** * Get the full tool-to-scope map (for testing/debugging). */ export declare function getToolScopeMap(): ReadonlyMap; //# sourceMappingURL=scope-map.d.ts.map