import { Page } from "playwright"; import { PlaywrightTestConfig } from "playwright/test"; export declare function isRegExp(obj: any): obj is RegExp; export declare function addImportForMethod(testFilePath: string, methodName: string): void; export declare function replaceTodoWithCreateTest(testFilePath: string, repoDir: string): string | undefined; export declare function injectPwLocatorGenerator(page: Page): Promise; /** * function to read playwright config from the source repo * @return {*} {Promise} */ export declare function readPlaywrightConfig(repoDir: string): Promise; /** * detect the project name for the given file in playwright test repo * if project and test file path for running test don't match, then playwright throws error * @param testFilePath * @returns */ export declare function detectProjectName(testFilePath: string, playwrightConfig: PlaywrightTestConfig, pwProjectsFilter?: string[]): Promise; //# sourceMappingURL=utils.d.ts.map