import { TextDocument, Disposable, Position as VPosition, CancellationToken, ProviderResult, HoverProvider, Hover as VHover } from 'vscode'; import { ClientCapabilities, DocumentSelector, HoverOptions, HoverRegistrationOptions, ServerCapabilities } from 'vscode-languageserver-protocol'; import { FeatureClient, TextDocumentLanguageFeature } from './features'; export interface ProvideHoverSignature { (this: void, document: TextDocument, position: VPosition, token: CancellationToken): ProviderResult; } export interface HoverMiddleware { provideHover?: (this: void, document: TextDocument, position: VPosition, token: CancellationToken, next: ProvideHoverSignature) => ProviderResult; } export declare class HoverFeature extends TextDocumentLanguageFeature { constructor(client: FeatureClient); fillClientCapabilities(capabilities: ClientCapabilities): void; initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector): void; protected registerLanguageProvider(options: HoverRegistrationOptions): [Disposable, HoverProvider]; private registerProvider; }