const Collection = { doc ( _ ) { return Document ; } , get ( _ ) { return new Promise ( resolve => resolve ( ) ) ; } , } ; const Document = { collection ( _ ) { return Collection ; } , get < T > ( _ ) { return new Promise ( resolve => resolve ( { } as T ) ) ; } , set < T > ( _ ) { return new Promise ( resolve => resolve ( ) ) ; } , delete ( _ ) { return new Promise ( resolve => resolve ( ) ) ; } , update < T > ( _ ) { return new Promise ( resolve => resolve ( ) ) ; } , } ; export default function createInstance ( ) { return { collection ( _ ) { return Collection ; } , doc ( _ ) { return Document ; } , } ; }