import { ActorProtocolError } from "../errors.js"; import type { DatabaseCall, DatabaseResult } from "../host/database.js"; import type { BlockingStream } from "./blocking-stream.js"; import type { GarbageCollection } from "./garbage-collection.js"; /** The channel can no longer be used: an exchange stopped part way, so the next would be misread. */ declare class DatabaseChannelError extends ActorProtocolError { } /** * The actor's database in the Rust host. A call holds the thread until it is answered, which is what lets * `this.db` be synchronous. Bound values, rows and the JSON of fields cross as bytes beside the call, and are never * held as JSON inside it. */ declare class DatabaseChannel { private readonly collection; private readonly stream; private readonly reader; private readonly writer; private failure; constructor(stream: BlockingStream, collection: GarbageCollection); /** `invocation` names the command whose database the call reaches. Without it, the activation's. */ call(call: DatabaseCall, invocation?: number): DatabaseResult; private exchange; private request; private value; private answer; private field; private cell; } export { DatabaseChannel, DatabaseChannelError }; //# sourceMappingURL=database-channel.d.ts.map