import type { SessionPort } from "./port.js"; export type SessionServerOptions = { dir: string; logPath: string; commentsPath: string | undefined; /** The viewer's pid; a test may pick another to keep records apart. */ pid?: number; }; export type SessionServer = { socketPath: string; stop(): Promise; }; /** Why no server was started: the shell shows this once if asked for a * session key, and otherwise runs as before. */ export type SessionUnavailable = { unavailable: string; }; export declare function startSessionServer(port: SessionPort, options: SessionServerOptions): Promise; export declare function isUnavailable(started: SessionServer | SessionUnavailable): started is SessionUnavailable;