import type { Language, Point, Query, Tree } from 'web-tree-sitter'; import type { TreeSitterLanguageName } from '../languages'; export declare class EmptyFunctionResolver { #private; protected queryByLanguage: Map; constructor(); /** * Returns the comment that is directly above the cursor, if it exists. * To handle the case the comment may be several new lines above the cursor, * we traverse the tree to check if any nodes are between the comment and the cursor. */ isCursorInEmptyFunction({ languageName, tree, cursorPosition, treeSitterLanguage, }: { languageName: TreeSitterLanguageName; tree: Tree; treeSitterLanguage: Language; cursorPosition: Point; }): boolean; static isCursorAfterEmptyPythonFunction({ languageName, tree, cursorPosition, treeSitterLanguage, }: { languageName: TreeSitterLanguageName; tree: Tree; treeSitterLanguage: Language; cursorPosition: Point; }): boolean; } export declare function getEmptyFunctionResolver(): EmptyFunctionResolver;