import { Filepath } from '../../../core/types/filepath'; import { default as Compiler } from '../../index'; /** * With an `as` alias only the name changes. Without one, every link endpoint, group member and * metadata target in the same file that means it is renamed too, written by full name (`Server web`). * `role` picks among elements sharing the handle. An empty map means no change (lookup miss or name collision). */ export declare function renameElement(this: Compiler, filepath: Filepath, oldHandle: string, newName: string, role?: string): Map;