import type { ActorIdentity } from "../actor/identity.js"; import type { Invocation } from "./invocation.js"; import type { ActorExecutorCommand, ActorExecutorReply } from "./protocol.js"; import type { ActorCallRequester, LogWriter, ResidentActorOptions } from "./types.js"; /** * The actor this process runs. Its code runs on the thread that reads the session, so a database call holds the * whole process until the Rust host answers. */ declare class ResidentActor { private readonly options; private loading; private actorNames; private identity; private calls; private logs; private activation; private lastResident; private lastSequence; private closed; private readonly residencyListeners; private readonly client; private readonly releaseConsole; constructor(options: ResidentActorOptions); /** Runs the customer's module, once. Resolves with the names of the actors it exports. */ ready(): Promise; assign(actor: ActorIdentity, calls: ActorCallRequester, logs?: LogWriter): void; handle(command: ActorExecutorCommand, invocation: Invocation): Promise; isResident(): boolean; onResidencyChange(listener: () => void): () => void; close(): void; private execute; private evict; private activate; private stop; private inOrder; private assignedActor; private notifyResidencyChange; private callActor; private readonly crashed; } export { ResidentActor }; //# sourceMappingURL=resident-actor.d.ts.map