export declare function isPathWithinRoot(targetPath: string, rootPath: string): boolean; export declare function createWorkspaceWriteGuard(cwd: string): (absolutePath: string) => void;