import { Vertex , Edge , Id } from 'lsif-protocol' ; import { Writer } from '../common/writer' ; export interface Emitter { start ( ) : void ; emit ( element ) : void ; flush ( ) : Promise < void > ; end ( ) : Promise < void > ; } export interface Create { ( writer , idGenerator ) : Emitter ; } export interface EmitterModule { create : Create ; }