import type { GetConfigOptions , ConfigMetaFormat , QueryEngineConfig } from '../../common/types/QueryEngine' ; export type ConnectArgs = { enableRawQueries : boolean ; } ; export type QueryEngineInstance = { connect ( connectArgs ) : Promise < void > ; disconnect ( ) : Promise < void > ; param requestStr param headersStr query ( requestStr , headersStr , transactionId ? ) : Promise < string > ; sdlSchema ( ) : Promise < string > ; startTransaction ( options , trace ) : Promise < string > ; commitTransaction ( id , trace ) : Promise < string > ; rollbackTransaction ( id , trace ) : Promise < string > ; } ; export interface QueryEngineConstructor { new ( config , logger ) : QueryEngineInstance ; } export type Library = { QueryEngine : QueryEngineConstructor ; version : ( ) => { commit : string ; version : string ; } ; getConfig : ( options : GetConfigOptions ) => Promise < ConfigMetaFormat > ; /**
     * This returns a string representation of `DMMF.Document`
     */ dmmf : ( datamodel : string ) => Promise < string > ; } ;