/** * Lookup of the owner's registered Personal Server URLs at the gateway. * * The local transport URL (how this CLI reaches the server, often * localhost) and the registered public URL (what builders resolve through * the gateway) are two names for the same server. Display surfaces show * both; this module supplies the second, best-effort and offline-tolerant. */ import { createGatewayClient } from "@opendatalabs/vana-sdk"; import { type VanaNetworkName } from "../core/network.js"; export interface RegisteredServer { network: VanaNetworkName; url: string; serverAddress: string; status: string; } /** * Active registrations for an owner across both networks, newest first per * network. Failures and timeouts yield an empty list, never an error - a * display concern must not break a status command. */ export declare function lookupRegisteredServers(owner: string, deps?: { createClient?: typeof createGatewayClient; }): Promise; export interface CheckedServer extends RegisteredServer { /** Answered /health from outside as this owner's server. */ reachable: boolean; } /** * Ask each registration's public URL whether it answers, in parallel. A * registration only counts as live when its /health says it belongs to this * owner and, when it says who it is, that it is the registered server. */ export declare function checkRegisteredServers(servers: RegisteredServer[], owner: string, fetchImpl?: typeof fetch): Promise; //# sourceMappingURL=registered.d.ts.map