import type { HostSocketEffect, SocketLookup, SocketQuery } from "../actor/socketProtocol.js"; /** What a running command reaches in the Rust host. */ interface Invocation { /** The command's message ID, which names its database, its logs and its socket output to the Rust host. */ readonly id: number; allowNext(): void; publish(effects: readonly HostSocketEffect[]): void; connections(query?: SocketQuery): Promise; } declare function runInvocation(invocation: Invocation, operation: () => T): T; /** The command that started the running code, which may since have replied. */ declare function currentInvocation(): Invocation | undefined; export { currentInvocation, runInvocation }; export type { Invocation }; //# sourceMappingURL=invocation.d.ts.map