export type DocumentContextKind = 'apex:class-reference' | 'apex:soql-from' | 'apex:soql-field' | 'trigger:object' | 'lwc:apex-import' | 'lwc:schema-import' | 'xml:element-value' | 'unknown';
export type DocumentContext = {
    kind: DocumentContextKind;
    /** The partial text the user has typed at the cursor position */
    prefix: string;
    /** For SOQL fields, the object name in the FROM clause */
    soqlObject?: string;
};
/**
 * Determines the semantic context at a given position in a document.
 * Uses simple line-based heuristics (no full AST parsing).
 */
export declare function detectContext(lineText: string, character: number, fileExtension: string, allLines: string[]): DocumentContext;
/**
 * Extracts the word at a given character position in a line.
 * Used for hover and go-to-definition.
 */
export declare function getWordAtPosition(lineText: string, character: number): string;
/**
 * Extracts a qualified name (e.g., Object__c.Field__c) at a given position.
 */
export declare function getQualifiedNameAtPosition(lineText: string, character: number): string;
