/**
 * Permissions API routes
 *
 * Per-folder membership management. Only folder admins (member with
 * role='admin') can grant/revoke access to their folder; workspace
 * ownership alone does NOT confer folder-admin rights, so owners can't
 * push users into private folders they aren't members of. The list of
 * folders returned by GET /api/permissions/folders is scoped by
 * `isFolderAdminOrOwner` so workspace owners see shared folders they
 * can oversee, but solo/private folders of other users stay hidden
 * (matching the docs/agents/auth-access.md rule that privacy holds even
 * against the workspace owner).
 */
import type { FastifyInstance } from 'fastify';
import { AuthService } from '../../services/auth-service.js';
import { WorkspaceManager } from '../../core/workspace-manager.js';
import type { WsHub } from '../ws-hub.js';
export declare function registerPermissionsApiRoutes(fastify: FastifyInstance, authService: AuthService, workspaceManager: WorkspaceManager, wsHub: WsHub): Promise<void>;
