import { type ProjectConfiguration, type Tree } from '@nx/devkit'; import type { Expression, ObjectLiteralExpression, PropertyAssignment, PropertyName, SourceFile } from 'typescript'; export declare function cypressProjectConfigs(tree: Tree): AsyncGenerator<{ projectName: string; projectConfig: ProjectConfiguration; cypressConfigPath: string; }>; export declare function getObjectProperty(config: ObjectLiteralExpression, name: string): PropertyAssignment | undefined; export declare function removeObjectProperty(config: ObjectLiteralExpression, property: PropertyAssignment): ObjectLiteralExpression; export declare function updateObjectProperty(config: ObjectLiteralExpression, property: PropertyAssignment, { newName, newValue }: { newName?: string; newValue?: Expression; }): ObjectLiteralExpression; export declare function getComponentTestingPresetImport(sourceFile: SourceFile): string | null; export declare function getPropertyName(name: PropertyName): string | null; export declare function parseSourceFile(filePath: string, content: string): SourceFile; /** * Whether the file binds `name` as a runtime value anywhere: a variable, * parameter, destructured element, function or class (declaration or named * expression), enum, namespace holding a value, or a value import (`import x`, * `import { x }`, `import * as x`, `import x =`). * Type-only imports and ambient declarations (`declare ...`, including * everything under `declare global`) do not count, so the usual * `declare global { namespace Cypress { ... } }` augmentation never hides the * `Cypress` global. */ export declare function hasLocalValueBinding(sourceFile: SourceFile, name: string): boolean;