import { Connector } from "../connection/connector.js" ; import { ModelInterface , Relation } from "../models/model.interface.js" ; export interface RelationInterface { db : IDBDatabase ; connector : Connector ; bindResults ( parentResults , relationResults , relation ) : Promise < any > ; fetch ( results ) : Promise < any [ ] > ; getLocalKey ( model , relation ) : string ; getAttributeName ( model , relation ) : string ; }