import type { TextDocument } from 'vscode-languageserver-textdocument';
import type { WorkspaceEdit } from 'vscode-languageserver-types';
import { Range } from 'vscode-languageserver-types';
import type { Telemetry } from '../telemetry';
import type { PrepareRenameParams, RenameParams } from 'vscode-languageserver-protocol';
export declare class YamlRename {
    private readonly telemetry?;
    constructor(telemetry?: Telemetry);
    prepareRename(document: TextDocument, params: PrepareRenameParams): Range | null;
    doRename(document: TextDocument, params: RenameParams): WorkspaceEdit | null;
    private findTarget;
    private findByToken;
    private findAnchorToken;
    private getAnchorFromToken;
    private getAnchorFromCollectionItem;
    private getNameRange;
    private isOffsetInsideToken;
    private findInvalidAnchorChar;
}
