import { MigrationInterface } from "../migration/migration.interface.js" ; import { ModelKeysInterface , TransactionModes } from "../models/model.interface.js" ; export interface ConnectorInterface { connect ( ) : Promise < ModelKeysInterface > ; destroy ( databaseName ) : Promise < boolean > ; indexedDB ( ) : IDBFactory ; getMigration ( ) : MigrationInterface | null ; getDatabase ( ) : IDBDatabase | null ; openTransaction ( mode ) : { models : ModelKeysInterface ; transaction : IDBTransaction ; } ; close ( ) : Promise < boolean > ; }