@@ -2,7 +2,6 @@ import { type MongoCryptContext, type MongoCryptKMSRequest } from 'mongodb-clien
22import * as net from 'net' ;
33import * as tls from 'tls' ;
44
5- import { type AutoEncrypter } from '..' ;
65import {
76 type BSONSerializeOptions ,
87 deserialize ,
@@ -14,7 +13,7 @@ import { type ProxyOptions } from '../cmap/connection';
1413import { CursorTimeoutContext } from '../cursor/abstract_cursor' ;
1514import { getSocks , type SocksLib } from '../deps' ;
1615import { MongoOperationTimeoutError } from '../error' ;
17- import { type MongoClient , type MongoClientOptions } from '../mongo_client' ;
16+ import { type IO , type MongoClient , type MongoClientOptions } from '../mongo_client' ;
1817import { type Abortable } from '../mongo_types' ;
1918import { type CollectionInfo } from '../operations/list_collections' ;
2019import { Timeout , type TimeoutContext , TimeoutError } from '../timeout' ;
@@ -25,7 +24,7 @@ import {
2524 MongoDBCollectionNamespace ,
2625 promiseWithResolvers
2726} from '../utils' ;
28- import { autoSelectSocketOptions , type ClientEncryption , type DataKey } from './client_encryption' ;
27+ import { autoSelectSocketOptions , type DataKey } from './client_encryption' ;
2928import { MongoCryptError } from './errors' ;
3029import { type MongocryptdManager } from './mongocryptd_manager' ;
3130import { type KMSProviders } from './providers' ;
@@ -186,10 +185,10 @@ export type StateMachineOptions = {
186185 */
187186// TODO(DRIVERS-2671): clarify CSOT behavior for FLE APIs
188187export class StateMachine {
189- private parent : AutoEncrypter | ClientEncryption ;
188+ private parent : { _client : { io : IO } } ;
190189
191190 constructor (
192- parent : AutoEncrypter | ClientEncryption ,
191+ parent : { _client : { io : IO } } ,
193192 private options : StateMachineOptions ,
194193 private bsonOptions = pluckBSONSerializeOptions ( options )
195194 ) {
0 commit comments