import { File } from './check-parser/parser.js'; import { PackageManager } from './check-parser/package-files/package-manager.js'; export interface PlaywrightProjectBundle { browsers: string[]; relativePlaywrightConfigPath: string; playwrightVersion: string; workingDir?: string; files: File[]; } export declare class PlaywrightProjectBundler { #private; bundle(playwrightConfig: string, include: string[]): Promise; protected bundleProject(playwrightConfig: string, include: string[]): Promise; } export declare function normalizeVersion(v?: string | undefined): string | undefined; export declare function getAutoIncludes(basePath: string, globCwd: string, packageManager: PackageManager, existingIncludes: string[]): string[]; /** * Resolves the @playwright/test version that should run in the cloud. * * The project's lockfile is the source of truth: the version it pins is what * CI and other developers resolve, and it stays correct even when the local * node_modules has drifted (e.g. after switching branches without * reinstalling). When no usable lockfile answer is available — no lockfile, an * unsupported/unparseable format, or the package isn't pinned for the relevant * workspace member — we fall back to reading the installed package. */ export declare function resolvePlaywrightVersion(cwd: string): Promise; export declare function getPlaywrightVersionFromPackage(cwd: string): Promise;