/** * Daemon endpoint / host parsing (MAIN-SCOPE §4 protocol responsibilities). * * Parses a daemon target into a normalized descriptor. Supported forms: * - `host:port` / `host` → direct (default port 6767) * - `tcp://host:port?ssl=&password=` → direct, with ssl/password params * - `ws://host:port` / `wss://host:port` → direct (wss ⇒ ssl) * - `relay://relayHost[:port]/?...` → relay */ /** Default daemon listen port (MAIN-SCOPE §2: `127.0.0.1:6767`). */ export declare const DEFAULT_DAEMON_PORT = 6767; export interface EndpointDescriptor { kind: "direct" | "relay"; host: string; port: number; ssl: boolean; password?: string; /** Relay channel/server id (relay endpoints only). */ relayId?: string; /** The original input string. */ raw: string; } /** Parse a daemon target string into a normalized {@link EndpointDescriptor}. */ export declare function parseEndpoint(input: string, opts?: { defaultPort?: number; }): EndpointDescriptor; //# sourceMappingURL=endpoint.d.ts.map