import * as http from 'http';
import { Server } from 'node:http';
import express from 'express';
import { PageAgent } from './agent.js';
import { a as AbstractPage } from './page-1e107f16.js';
import '@midscene_spp/core';
import '@midscene_spp/core/ai-model';
import 'playwright';
import '@midscene_spp/shared/extractor';
import 'puppeteer';
import '@midscene_spp/shared/logger';
import '@midscene_spp/shared/constants';

declare class PlaygroundServer {
    app: express.Application;
    tmpDir: string;
    server?: Server;
    port?: number | null;
    pageClass: new (...args: any[]) => AbstractPage;
    agentClass: new (...args: any[]) => PageAgent;
    staticPath?: string;
    taskProgressTips: Record<string, string>;
    constructor(pageClass: new (...args: any[]) => AbstractPage, agentClass: new (...args: any[]) => PageAgent, staticPath?: string);
    filePathForUuid(uuid: string): string;
    saveContextFile(uuid: string, context: string): string;
    launch(port?: number): Promise<unknown>;
    close(): Server<typeof http.IncomingMessage, typeof http.ServerResponse> | undefined;
}

export { PlaygroundServer as default };
