import { Node , LineAndCharacter } from 'typescript/lib/tsserverlibrary' ; export default interface ScriptSourceHelper { getAllNodes ( fileName , condition ) : ReadonlyArray < ts . Node > ; getNode ( fileName , position ) : Node | undefined ; getLineAndChar ( fileName , position ) : LineAndCharacter ; getOffset ( fileName , line , character ) : number ; }