/** * 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 { Config } from './types/config.js'; export type CLIOptions = { allowedOrigins?: string[]; blockedOrigins?: string[]; blockServiceWorkers?: boolean; browser?: string; caps?: string; cdpEndpoint?: string; config?: string; device?: string; electron?: boolean; executablePath?: string; extension?: boolean; headless?: boolean; host?: string; ignoreHttpsErrors?: boolean; isolated?: boolean; imageResponses?: 'allow' | 'omit'; sandbox: boolean; outputDir?: string; port?: number; pluginsFolder?: string; proxyBypass?: string; proxyServer?: string; saveTrace?: boolean; storageState?: string; userAgent?: string; userDataDir?: string; viewportSize?: string; }; type BrowserUserConfig = NonNullable; export type FullConfig = Config & { browser: Omit & { browserName: 'chromium' | 'firefox' | 'webkit'; launchOptions: NonNullable; contextOptions: NonNullable; }; network: NonNullable; outputDir: string; plugins: NonNullable; server: NonNullable; }; export declare function resolveConfig(config: Config): Promise; export declare function resolveCLIConfig(cliOptions: CLIOptions): Promise; export declare function validateConfig(config: FullConfig, cliOptions: CLIOptions): void; export declare function configFromCLIOptions(cliOptions: CLIOptions): Promise; export declare function outputFile(config: FullConfig, name: string): Promise; export {};