/**
 * 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 { expect } from '../mcp/fixtures';
import type { Client } from '@modelcontextprotocol/sdk/client/index.js';
import type { BrowserContext, Page } from 'playwright';
import type { StartClient } from '../mcp/fixtures';
export type BrowserWithExtension = {
    userDataDir: string;
    launch: (mode?: 'disable-extension') => Promise<BrowserContext>;
};
export type CliResult = {
    output: string;
    error: string;
};
export type ExtensionTestOptions = {
    protocolVersion: 1 | 2;
};
export type TestFixtures = {
    browserWithExtension: BrowserWithExtension;
    pathToExtension: string;
    startExtensionClient: (env?: Record<string, string>) => Promise<{
        browserContext: BrowserContext;
        client: Client;
    }>;
    cli: (args: string[], options?: {
        env?: Record<string, string>;
    }) => Promise<CliResult>;
};
export declare const extensionId = "mmlmfjhmonkocbjadbfplnigmagldckm";
export declare const test: any;
export { expect };
export declare const testWithOldExtensionVersion: any;
export declare function startWithExtensionFlag(browserWithExtension: BrowserWithExtension, startClient: StartClient, env?: Record<string, string>): Promise<Client>;
export declare function clickAllowAndSelect(connectPage: Page, tabTitle: RegExp | string): Promise<void>;
export declare function connectAndNavigate(browserContext: BrowserContext, client: Client, url: string): Promise<Awaited<ReturnType<Client['callTool']>>>;
//# sourceMappingURL=extension-fixtures.d.ts.map