import { Uri } from '@opensumi/ide-core-common';
import { ExtensionDocumentDataManager } from '../../../../common/vscode';
import { ChainedCacheId, ILink, ILinksListDto } from '../../../../common/vscode/model.api';
import type vscode from 'vscode';
export declare class LinkProviderAdapter {
    private readonly provider;
    private readonly documents;
    private cache;
    constructor(provider: vscode.DocumentLinkProvider, documents: ExtensionDocumentDataManager);
    provideLinks(resource: Uri, token: vscode.CancellationToken): Promise<ILinksListDto | undefined>;
    resolveLink(id: ChainedCacheId, token: vscode.CancellationToken): Promise<ILink | undefined>;
    releaseLink(cacheId: number): void;
}
//# sourceMappingURL=link-provider.d.ts.map