/** * The connection registry this host installed, for provider code that is not * given one. * * A `WorkflowRunDatabase` handle is a lease on an authoritative connection, and * everything that writes beside a caller's transaction needs the registry that * issued it. Most provider code is handed that registry directly, because it is * created where the provider is installed. The suspension controller is not: it * is created by the trusted host around one execution, from a handle alone. * * So the registry travels under a stable contextual name — and what travels is * an opaque token, never the registry. The token is meaningless without the * private map that resolves it, so a scope that reconstructs the name selects * nothing, and a registration closed with its installing scope stops resolving. */ import { type Operation } from "effection"; import type { WorkflowRunConnections } from "./connections.js"; /** Publish this host's registry for the installing scope and its descendants. */ export declare function useHostConnections(connections: WorkflowRunConnections): Operation; /** The registry the enclosing host installed, or nothing outside one. */ export declare function hostConnections(): Operation;