export { servedProjectAnswer } from './registry-format.js'; export declare const EDITOR_SESSION_DISCOVERY_TIMEOUT_MS = 2000; export declare const EDITOR_PROBE_TIMEOUT_MS = 1500; export declare class EditorTimeoutError extends Error { constructor(label: string, ms: number); } export declare function withTimeout(promise: Promise, ms: number, label: string): Promise; export interface EditorSessionInfo { /** The port this session's dev server is bound to. */ port: number; /** Canonical project root path currently open, or null when none. */ project: string | null; /** Dev-server process id, when known from the local session registry (null for an unregistered server the caller only probed by port). */ pid: number | null; /** Exact explicitly targeted editor origin/base URL, including protocol and host. */ url?: string; /** * Why this server cannot DESCRIBE the `project` it is serving — its * manifest's own parse/validation failure, naming the failing key. `null` * when the project reads fine, and `undefined` from a probe that did not ask * See {@link servedProjectAnswer}: a session in * this state is still THIS project's session, and callers must report the * reason rather than treat it as no session at all. */ manifestError?: string | null; } export interface SessionListingTransport { listSessions(timeoutMs: number): Promise; } export declare class HttpSessionDiscovery implements SessionListingTransport { listSessions(timeoutMs: number): Promise; }