import { Server } from "socket.io"; /** * Resolves dashboard assets for both repository builds and installed plugins. * @param environment Process environment containing an optional bundled UI override. * @param moduleDirectory Directory containing the compiled API server module. * @returns Absolute path to the dashboard's production assets. */ export declare function resolveDashboardWebRoot(environment?: NodeJS.ProcessEnv, moduleDirectory?: string): string; /** * Global singleton tracking the health, bound port, and session payload * of the actively running Web Dashboard instance. */ export declare const activePortalStatus: { running: boolean; port: number; host: string; token: `${string}-${string}-${string}-${string}-${string}`; browserOpened: boolean; }; /** * Retrieves the operational footprint of the user-facing Web Dashboard. * Intelligently boots the local Express daemon on demand if it is dormant, * and intercepts hard-blocks configured via environment flags. * * @param autoOpen If true, seamlessly dispatches a subshell command to route the host's default web browser to the secure link. * @param projectDir Optional project directory to register upon startup. * @returns A dictionary dictating the physical port, localhost domain string, and active session cryptographic token. */ export declare function getDashboardStatus(autoOpen?: boolean, projectDir?: string): Promise<{ baseUrl: string; launchUrl: string; expiresAt: string; projectDir: string | undefined; status: string; url: string; secureLink: string; token: string; deprecatedAuthenticationFields: string[]; }>; /** * Initializes and binds the Portal REST/WS endpoints. * @param defaultPort Optional static port configuration. * @returns The established application instances { app, httpServer, io } */ export declare function startPortalServer(defaultPort?: number): { app: import("express-serve-static-core").Express; httpServer: import("http").Server; io: Server; authToken: `${string}-${string}-${string}-${string}-${string}`; close: () => Promise; }; //# sourceMappingURL=server.d.ts.map