/// import * as vscode from 'vscode'; import type { TextmateToken } from './services/tokenizer'; import type { GrammarLanguageDefinition, LanguageDefinition } from './util/contributes'; /** * Get token scope information at a specific position (caret line and character number). * @param {vscode.TextDocument} document Document to be tokenized. * @param {vscode.Position} position Zero-indexed caret position of token in document. * @returns {Promise} Promise resolving to token data for scope selected by caret position. */ export declare function getScopeInformationAtPosition(document: vscode.TextDocument, position: vscode.Position): Promise; /** * VS Code compatible performant API for token information at a caret position. * @param {vscode.TextDocument} document Document to be tokenized. * @param {vscode.Position} position Zero-indexed caret position of token in document. * @returns {Promise} Promise resolving to token data compatible with VS Code. */ export declare function getTokenInformationAtPosition(document: vscode.TextDocument, position: vscode.Position): Promise; /** * Get matching scope range of the Textmate token intersecting a caret position. * @param {vscode.TextDocument} document Document to be tokenized. * @param {vscode.Position} position Zero-indexed caret position to intersect with. * @returns {Promise} Promise resolving to character and line number of the range. */ export declare function getScopeRangeAtPosition(document: vscode.TextDocument, position: vscode.Position): Promise; /** * Get the language definition point of a language mode identifier. * @param {string} languageId Language ID as shown in brackets in "Change Language Mode" panel. * @returns {LanguageDefinition} Language contribution as configured in source VS Code extension. */ export declare function getLanguageContribution(languageId: string): LanguageDefinition; /** * Get the language definition point of a language mode identifier. * @param {string} languageId Language identifier, shown in brackets in "Change Language Mode" panel. * @returns {GrammarLanguageDefinition} Grammar contribution as configured in source VS Code extension. */ export declare function getGrammarContribution(languageId: string): GrammarLanguageDefinition; /** * Get the language point of a language mode identifier. * @param {string} languageId Language ID as shown in brackets in "Change Language Mode" panel. * @returns {LanguageDefinition} Language contribution as configured in source VS Code extension. */ export declare function getLanguageConfiguration(languageId: string): Promise; /** * Get the VS Code Extension API entry of the extension that contributed a language mode identifier. * @param {string} languageId Language identifier, shown in brackets in "Change Language Mode" panel. * @returns {vscode.Extension} Extension API instance that contributed the language. */ export declare function getContributorExtension(languageId: string): vscode.Extension | void;