/// <reference types="chrome" />
/**
 * Copyright (c) 2024-present Bytedance, Inc. and its affiliates.
 * SPDX-License-Identifier: MIT
 */
import type { WebUIContext } from '@midscene/web/utils';
export declare const workerMessageTypes: {
    SAVE_CONTEXT: string;
    GET_CONTEXT: string;
};
export interface WorkerRequestSaveContext {
    context: WebUIContext;
}
export interface WorkerResponseSaveContext {
    id: string;
}
export interface WorkerRequestGetContext {
    id: string;
}
export interface WorkerResponseGetContext {
    context: WebUIContext;
}
export declare function sendToWorker<Payload, Result = any>(type: string, payload: Payload): Promise<Result>;
export declare function getPlaygroundUrl(cacheContextId: string): string;
export declare function activeTabId(): Promise<number>;
export declare function currentWindowId(): Promise<number>;
export declare function getExtensionVersion(): string;
export declare function getTabInfo(tabId: number): Promise<chrome.tabs.Tab>;
