import type { Position } from 'vscode-languageserver-protocol'; import { GenerationType } from '../api'; import { type Comment } from './comments/comment_resolver'; import type { TreeAndLanguage } from './parser'; export type Intent = 'completion' | 'generation' | undefined; export type IntentResolution = { intent: Intent; commentForCursor?: Comment; generationType?: GenerationType; }; /** * Determines the user intent based on cursor position and context within the file. * Intent is determined based on several ordered rules: * - Returns 'completion' if the cursor is located on or after an empty comment. * - Returns 'generation' if the cursor is located after a non-empty comment. * - Returns 'generation' if the cursor is not located after a comment and the file is less than 5 lines. * - Returns undefined if neither a comment nor small file is detected. */ export declare function getIntent({ treeAndLanguage, position, prefix, suffix, }: { treeAndLanguage: TreeAndLanguage; position: Position; prefix: string; suffix: string; }): Promise;