import { StateTypes } from '@coast-team/mute-core' ; import { Doc } from '../Doc' ; import { File } from '../File' ; import { Folder } from '../Folder' ; export interface IStorage { save ( file ) : void ; move ( file , folder ) : void ; delete ( file ) : void ; saveDocContent ( doc , body ) ; fetchDocContent ( doc ) : Promise < StateTypes | undefined > ; fetchDocContent ( doc , blob ) : Promise < StateTypes | Blob | undefined > ; fetchDocs ( folder ) : Promise < Doc [ ] > ; }