import { Express } from "express"; import http from "http"; import { Server } from "socket.io"; import ExpressBridge from "./ExpressBridge.js"; interface JunctureConfig { maxListeners: number; staticFolder: string; } declare class Juncture { private port; private defaultState; private state; private config; private app; private server; private io; bridge: ExpressBridge; constructor(port?: number, defaultState?: any, config?: Partial); private loadStateFromFile; private saveStateToFile; private validateState; setState(newState: any): void; /** * Get the Express application instance. * Useful for adding custom routes and middleware. * @returns Express application instance * @example * ```typescript * const app = new Juncture(3000); * const expressApp = app.getExpressApp(); * expressApp.get('/api/custom', (req, res) => { * res.json({ message: 'Custom route' }); * }); * ``` */ getExpressApp(): Express; /** * Get the HTTP server instance. * Useful for advanced server configurations. * @returns HTTP server instance */ getHttpServer(): http.Server; /** * Get the Socket.IO server instance. * Useful for advanced socket.io configurations. * @returns Socket.IO server instance */ getSocketIO(): Server; start(): void; } export default Juncture;