import type { Component } from '@teambit/component'; import type { Doc } from '@teambit/docs.entities.doc'; export interface DocReader { /** * read a component doc. * @TODO refactor to virtual-file component after @david completes. */ read(path: string, contents: Buffer, component: Component): Promise; /** * determine which file formats are supported by the doc reader. */ isFormatSupported(ext: string): boolean; }