import { CompletionItem } from 'vscode-languageserver'; import type { Position as LspPosition } from 'vscode-languageserver'; import type { Token, Position as ManifestPosition, ManifestProgram } from '@angriff36/manifest/types'; import type { IR } from '@angriff36/manifest/ir'; /** * Find the token at a given manifest position (1-based). * Exported for use by hover and definition. * * NOTE: The Manifest lexer records token.position as the **end** of the token * (column after the last character). So a token's start column is: * startCol = token.position.column - token.value.length */ export declare function findTokenAtPosition(tokens: Token[], pos: ManifestPosition): Token | null; /** * Get the start column of a token (1-based). * The lexer records end positions, so we subtract the value length. */ export declare function tokenStartColumn(token: Token): number; /** * Determine completion context and return appropriate items. */ export declare function getCompletions(tokens: Token[], program: ManifestProgram, ir: IR | null, position: LspPosition): CompletionItem[]; //# sourceMappingURL=completion.d.ts.map