export declare class MeshOfflineError extends Error { constructor(message?: string); } export type Reply = { id: string; ok: boolean; [k: string]: unknown; }; export interface CallOptions { dir?: string; timeoutMs?: number; } /** One request/reply over the hub socket. Any transport failure is MeshOfflineError. */ export declare function meshCall(req: Record, o?: CallOptions): Promise; /** * meshCall, starting the hub on first use. Throws MeshOfflineError if it never comes up. * * A hub that cannot start (missing native module, squatted lock) must not turn every heartbeat * and every `mesh_who` into a new process and a multi-second wait: spawns are rate limited per * directory, and after a failed start-up further calls fail fast for `failCooldownMs`. */ export declare function callWithHub(req: Record, o?: CallOptions & { spawnHub?: (dir: string) => void; retries?: number; retryDelayMs?: number; spawnBackoffMs?: number; failCooldownMs?: number; }): Promise; //# sourceMappingURL=client.d.ts.map