import * as _midscene_spp_core__ from '@midscene_spp/core/.';
import { PageAgent, PageAgentOpt } from './agent.js';
import { B as BridgeConnectTabOptions, E as ExtensionBridgePageBrowserSide } from './browser-7efb1ac2.js';
export { allConfigFromEnv, overrideAIConfig } from '@midscene_spp/shared/env';
import '@midscene_spp/core';
import './page-1e107f16.js';
import 'playwright';
import '@midscene_spp/shared/extractor';
import 'puppeteer';
import '@midscene_spp/shared/logger';
import '@midscene_spp/shared/constants';
import '@midscene_spp/core/ai-model';

interface ChromeExtensionPageCliSide extends ExtensionBridgePageBrowserSide {
    showStatusMessage: (message: string) => Promise<void>;
}
declare class AgentOverChromeBridge extends PageAgent<ChromeExtensionPageCliSide> {
    private destroyAfterDisconnectFlag?;
    constructor(opts?: PageAgentOpt & {
        closeNewTabsAfterDisconnect?: boolean;
        serverListeningTimeout?: number | false;
        closeConflictServer?: boolean;
    });
    setDestroyOptionsAfterConnect(): Promise<void>;
    connectNewTabWithUrl(url: string, options?: BridgeConnectTabOptions): Promise<void>;
    getBrowserTabList(): Promise<{
        id: string;
        title: string;
        url: string;
        currentActiveTab: boolean;
    }[]>;
    setActiveTabId(tabId: string): Promise<void>;
    connectCurrentTab(options?: BridgeConnectTabOptions): Promise<void>;
    aiAction(prompt: string, options?: any): Promise<{
        result: Record<string, any>;
    } | {
        yamlFlow?: _midscene_spp_core__.MidsceneYamlFlowItem[];
    } | undefined>;
    destroy(closeNewTabsAfterDisconnect?: boolean): Promise<void>;
}

declare const killRunningServer: (port?: number) => Promise<void>;

export { AgentOverChromeBridge, killRunningServer };
