import { type MongoCodec, type MongoDocument } from './stream.js'; /** Sends bytes and returns every byte the server answered to them. */ export type MongoExchange = (bytes: Uint8Array) => Promise; /** A client on one connection: `command` sends a document to `database` and resolves with the reply document, * whatever its `ok`. A reply that is not one whole OP_MSG answering this request is an error. */ export declare function mongoClient(exchange: MongoExchange, codec: MongoCodec): { command(database: string, command: MongoDocument): Promise; };