/** * Conduit factory — creates a Conduit instance from the agent registry. * * Auto-selects the appropriate Transport based on the agent's credential * configuration. Priority: Local (napi-rs) > WebSocket > SSE > HTTP polling. * * @see docs/specs/SIGNALDOCK-UNIFIED-AGENT-REGISTRY.md Section 4.5 * @task T177 */ import type { AgentCredential, AgentRegistryAPI, Conduit, Transport } from '@cleocode/contracts'; /** * Resolve the best available transport for a credential. * * Priority (highest to lowest): * 1. LocalTransport — when conduit.db exists in the project's .cleo/ dir. * Local delivery is always preferred for inter-agent messaging within * the same project, even when the agent also has cloud credentials. * 2. SseTransport — when the credential includes an SSE endpoint URL. * 3. HttpTransport — fallback for cloud-only or no conduit.db. * * Note: LocalTransport and cloud credentials are not mutually exclusive. * Agents registered with a remote apiBaseUrl still use LocalTransport when * conduit.db is available, since local delivery does not require a network. */ export declare function resolveTransport(credential: AgentCredential): Transport; /** Create a Conduit instance from the agent registry. */ export declare function createConduit(registry: AgentRegistryAPI, agentId?: string): Promise; //# sourceMappingURL=factory.d.ts.map