/** * Tool permissions checker * * Validates if a tool can be executed based on: * - Allowed tools list * - Session permissions * - Mode restrictions */ import type { SapMcpContext, SapPermission } from '../../core/src/types.js'; /** * Check if tool execution is allowed */ export declare function checkToolPermissions(context: SapMcpContext, toolName: string, permission?: SapPermission): { allowed: boolean; reason?: string; }; /** * Get required permission for a tool */ export declare function getRequiredPermission(toolName: string): SapPermission | undefined; /** * Check if tool is a write operation */ export declare function isWriteOperation(toolName: string): boolean; /** * Get all tools for a permission */ export declare function getToolsForPermission(permission: SapPermission): string[]; /** * @name getPermissionMappedTools * @description Returns all tool names with explicit permission mappings for consistency tests. */ export declare function getPermissionMappedTools(): string[]; //# sourceMappingURL=tool-permissions.d.ts.map