import { IMapItem } from '../stream.main/file.map' ; import { Progress } from "indexer-neon" ; import { CancelablePromise } from '../../tools/index' ; type ITicks = Progress . ITicks ; export { IMapItem , ITicks } ; export interface IReadWriteResult { streamId : string ; map : IMapItem [ ] ; } export abstract class AFileParser { public abstract destroy ( ) ; public abstract getName ( ) ; public abstract getAlias ( ) ; public abstract isSupported ( file ) ; public abstract getExtnameFilters ( ) ; public abstract getExtensions ( ) ; public abstract abort ( ) ; public abstract getMeta ( ) ; public abstract parseAndIndex ( srcFile , destFile , sourceId , options , onMapUpdated ? , onProgress ? ) ; }