import { RegistryEntry } from '../registries/RegistryEntry' ; export interface IRegistry < T extends RegistryEntry > { getAll ( ) : Promise < T [ ] > ; get ( name ) : Promise < T > ; exists ( name ) : Promise < boolean > ; add ( entry ) : Promise < void > ; update ( newEntry ) : Promise < void > ; delete ( name , ignoreNotExists ) : Promise < void > ; clear ( ) : Promise < void > ; }