//#region src/server.d.ts interface InspectorServerOptions { /** * Port for the WebSocket and HTTP server. * @default 8080 */ port?: number; /** * URL of the Stately inspector UI to embed. * @default 'https://stately.ai/inspect' */ url?: string; /** * Whether to automatically open the inspector in the default browser. * @default true */ autoOpen?: boolean; } /** * Creates a local WebSocket server that bridges inspection events * from a Node.js application to the Stately inspector UI in a browser. * * @example * ```ts * import { createInspectorServer } from '@statelyai/inspect/server'; * import { createWebSocketInspector } from '@statelyai/inspect'; * * // Start the server (auto-opens browser) * const server = createInspectorServer(); * * // Connect your app * const inspector = createWebSocketInspector({ * url: 'ws://localhost:8080', * }); * ``` */ declare function createInspectorServer(options?: InspectorServerOptions): { stop(): void; }; //#endregion export { InspectorServerOptions, createInspectorServer };