import { Uri as URI } from '@opensumi/ide-core-common';
import { ExtensionDocumentDataManager } from '../../../../common/vscode';
import * as model from '../../../../common/vscode/model.api';
import type vscode from 'vscode';
export declare class RenameAdapter {
    private readonly provider;
    private readonly documents;
    static supportsResolving(provider: vscode.RenameProvider): boolean;
    private readonly debug;
    constructor(provider: vscode.RenameProvider, documents: ExtensionDocumentDataManager);
    provideRenameEdits(resource: URI, position: model.Position, newName: string, token: vscode.CancellationToken): Promise<model.WorkspaceEditDto | undefined>;
    resolveRenameLocation(resource: URI, position: model.Position, token: vscode.CancellationToken): Promise<(model.RenameLocation & model.Rejection) | undefined>;
    private static asMessage;
}
//# sourceMappingURL=rename.d.ts.map