import { CompletionItem } from 'coc.nvim' ; import { Position } from 'vscode-languageserver-protocol' ; export abstract class BaseTemplate { abstract get languages ( ) : string [ ] ; abstract buildCompletionItem ( code , position ) ; indentCharacters ( ) { return '\t' ; } canUse ( language ) { if ( this . languages . includes ( language ) ) { return true ; } return false ; } }