import type { ToolHandlerContext } from '../types.js'; export declare function realpathSafe(p: string): string; export declare function _resetRootRealpathCacheForTests(): void; export declare function resolveAndContain(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write', fallbackBase?: string): string; export declare function wouldBeRestricted(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write', fallbackBase?: string): { restricted: boolean; resolved: string; roots: string[]; }; export declare function extractCandidatePaths(command: string): string[];