import { Server } from "@modelcontextprotocol/sdk/server/index.js"; /** * Ask the client for its list of allowed roots, then check whether * `targetPath` falls inside one of them. * * Returns `{ allowed: true, root }` when the path is within an allowed root, * or `{ allowed: false, roots, reason }` explaining why it was denied. */ export declare function isPathAllowed(server: Server, targetPath: string): Promise<{ allowed: true; root: string; } | { allowed: false; roots: string[]; reason: string; }>;