/** * HiveTendril — Node client for the VECNA Hive Nexus. * * Embedders use this when calling from within a Node process. Shell-driven * agents use the `vecna` CLI (which wraps the same HTTP surface). * * Errors carry a useful message; HTTP transport failures bubble as * `Error` with `code: "hive_unreachable"` so callers can distinguish * "service down" from "bad input". */ import type { ConnectInput, ConnectResult, EvolveInput, EvolveResult, Fragment, RecallOptions } from "./types.js"; export interface HiveTendrilOptions { url?: string; authToken?: string | null; timeoutMs?: number; /** Test seam — defaults to global `fetch`. */ fetchImpl?: typeof globalThis.fetch; } export declare class HiveTendril { private readonly config; private readonly fetchImpl; constructor(opts?: HiveTendrilOptions); healthz(): Promise<{ ok: boolean; db: "up" | "down"; version: string; }>; connect(input: ConnectInput): Promise; recall(topic: string, opts?: RecallOptions): Promise<{ topic: string; count: number; fragments: Fragment[]; }>; recallAsContext(topic: string, opts?: RecallOptions): Promise; search(query: string, limit?: number): Promise<{ query: string; count: number; fragments: Fragment[]; }>; getFragment(id: string): Promise; evolve(id: string, input: EvolveInput): Promise; private request; private requestText; } //# sourceMappingURL=client.d.ts.map