import { CancellationToken, Uri as URI } from '@opensumi/ide-core-common';
import { ExtensionDocumentDataManager, ICodeActionListDto } from '../../../../common/vscode';
import { ChainedCacheId, IWorkspaceEditDto, Range, Selection } from '../../../../common/vscode/model.api';
import { CommandsConverter } from '../ext.host.command';
import { Diagnostics } from './diagnostics';
import type { CodeActionContext } from '@opensumi/monaco-editor-core/esm/vs/editor/common/languages';
import type vscode from 'vscode';
export declare class CodeActionAdapter {
    private readonly provider;
    private readonly document;
    private readonly diagnostics;
    private static readonly _maxCodeActionsPerFile;
    private readonly _cache;
    private readonly _disposables;
    constructor(provider: vscode.CodeActionProvider, document: ExtensionDocumentDataManager, diagnostics: Diagnostics);
    provideCodeActions(resource: URI, rangeOrSelection: Range | Selection, context: CodeActionContext, commandConverter: CommandsConverter, token: CancellationToken): Promise<ICodeActionListDto | undefined>;
    resolveCodeAction(id: ChainedCacheId, token: vscode.CancellationToken): Promise<IWorkspaceEditDto | undefined>;
    releaseCodeActions(cachedId: number): void;
    private static _isCommand;
    private static _isSelection;
}
//# sourceMappingURL=code-action.d.ts.map