import type { Identifier, ImportDeclaration, SourceFile } from 'ts-morph'; /** * Check if an identifier is used as a function call (vs property access). * * @function * @param identifier - The identifier to check * @returns True if the identifier is part of a call expression */ export declare const isCallExpression: (identifier: Identifier) => boolean; /** * Check if any identifier with the given name is used as a call expression. * * @function * @param sourceFile - The source file to search * @param name - The identifier name to look for * @returns True if the identifier is used as a call */ export declare const hasCallUsage: (sourceFile: SourceFile, name: string) => boolean; /** * Check if a bupkis import already exists with a specific named import. * * @function * @param sourceFile - The source file to check * @param name - The named import to look for (e.g., 'expect', 'expectAsync') * @returns True if the import exists */ export declare const hasBupkisImport: (sourceFile: SourceFile, name: string) => boolean; /** * Get the existing bupkis import declaration, if any. * * @function * @param sourceFile - The source file to check * @returns The bupkis import declaration, or undefined */ export declare const getBupkisImport: (sourceFile: SourceFile) => ImportDeclaration | undefined; /** * Add named imports to the bupkis import, creating it if necessary. * * @function * @param sourceFile - The source file to modify * @param names - The named imports to add * @returns True if the import was modified or added */ export declare const addBupkisImport: (sourceFile: SourceFile, names: string[]) => boolean; /** * Remove a named import from a module specifier. * * If removing the import leaves the import declaration empty, the entire * declaration is removed. * * @function * @param sourceFile - The source file to modify * @param moduleSpecifier - The module to remove from * @param name - The named import to remove * @returns True if the import was removed */ export declare const removeNamedImport: (sourceFile: SourceFile, moduleSpecifier: string, name: string) => boolean; /** * Check if any import exists from the given module specifiers. * * @function * @param sourceFile - The source file to check * @param moduleSpecifiers - Array of module specifiers to look for * @returns True if any import exists from the given modules */ export declare const hasImportFrom: (sourceFile: SourceFile, moduleSpecifiers: string[]) => boolean; /** * Get all import declarations from the given module specifiers. * * @function * @param sourceFile - The source file to check * @param moduleSpecifiers - Array of module specifiers to look for * @returns Array of matching import declarations */ export declare const getImportsFrom: (sourceFile: SourceFile, moduleSpecifiers: string[]) => ImportDeclaration[]; //# sourceMappingURL=imports.d.ts.map