import vscode from 'vscode';
import { CancellationToken, IRange } from '@opensumi/ide-core-common';
import { ExtensionDocumentDataManager } from '../../../../common/vscode';
import { Uri } from '../../../../common/vscode/ext-types';
export declare class DocumentSemanticTokensAdapter {
    private readonly _documents;
    private readonly _provider;
    private readonly _previousResults;
    private _nextResultId;
    constructor(_documents: ExtensionDocumentDataManager, _provider: vscode.DocumentSemanticTokensProvider);
    provideDocumentSemanticTokens(resource: Uri, previousResultId: number, token: CancellationToken): Promise<Uint8Array | null>;
    releaseDocumentSemanticColoring(semanticColoringResultId: number): Promise<void>;
    private static _fixProvidedSemanticTokens;
    private static _isSemanticTokens;
    private static _isSemanticTokensEdits;
    private static _isCorrectSemanticTokens;
    private static _isCorrectSemanticTokensEdits;
    private static _convertToEdits;
    private _send;
}
export declare class DocumentRangeSemanticTokensAdapter {
    private readonly _documents;
    private readonly _provider;
    constructor(_documents: ExtensionDocumentDataManager, _provider: vscode.DocumentRangeSemanticTokensProvider);
    provideDocumentRangeSemanticTokens(resource: Uri, range: IRange, token: CancellationToken): Promise<Uint8Array | null>;
    private _send;
}
//# sourceMappingURL=semantic-tokens.d.ts.map