/**
 * Copyright (c) Microsoft Corporation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import type { ContextConfig } from './context';
import type * as playwright from '../../..';
import type { Tool } from './tool';
import type * as mcpServer from '../utils/mcp/server';
import type { ClientInfo, ServerBackend } from '../utils/mcp/server';
export declare class BrowserBackend implements ServerBackend {
    private _tools;
    private _context;
    private _sessionLog;
    private _config;
    readonly browserContext: playwright.BrowserContext;
    constructor(config: ContextConfig, browserContext: playwright.BrowserContext, tools: Tool[]);
    initialize(clientInfo: ClientInfo): Promise<void>;
    dispose(): Promise<void>;
    callTool(name: string, rawArguments?: mcpServer.CallToolRequest['params']['arguments'] & {
        _meta?: Record<string, any>;
    }, signal?: AbortSignal): Promise<mcpServer.CallToolResult>;
}
//# sourceMappingURL=browserBackend.d.ts.map