/** * Entity names across a solution — the input `validateEntity` needs for its * uniqueness rule, which only the host can supply. * * Shared because two callers need the same answer: `solution pack` validating * every stub in a project, and the inline commands validating one entity a * caller just edited. A second copy would let the two disagree about what * counts as a sibling, and the uniqueness diagnostic would fire in pack but not * in the command that was supposed to catch it first. */ import type { IFileSystem } from "@uipath/solutionpackager-tool-core"; /** An entity's siblings are every name in the solution except one occurrence of * its own — names are solution-wide unique. */ export declare function withoutOneOccurrence(names: readonly string[], name: string): string[]; /** Every entity name in the solution, read from stub filenames one directory * deep. Duplicates are kept so cross-project collisions surface. */ export declare function collectSolutionEntityNames(solutionDir: string, fs: IFileSystem): Promise; /** The sibling list for one entity, in one call — what a caller validating a * single entity wants. */ export declare function siblingNamesFor(solutionDir: string, entityName: string, fs: IFileSystem): Promise; /** Where an entity was found, and how the filesystem spells it. */ export interface EntityOwner { /** The project's directory NAME (not its path) — what the commands take. */ projectName: string; /** * The entity name as the STUB FILE spells it, which is not necessarily how * the caller spelled it: the match below is case-insensitive, but every * path built from the result is not. Handing back the caller's `product` * for a `Product.entity` produces a `StubFileNameMismatch` on a * case-insensitive filesystem and a missing file on a case-sensitive one. */ entityName: string; } /** * Which project directory owns `entityName`, searched across the solution. * * Entity names are solution-wide unique — `inlineEntityAddAsync` and * `entityInitAsync` both refuse a name another project holds — so this is a * lookup, not a guess: it finds one project or none. That is what lets * `--project-name` be optional on the verbs that address an existing entity. * * Empty when nothing owns the name; ambiguous only if the uniqueness guard was * bypassed, in which case the caller should ask. */ export declare function findProjectsOwningEntity(solutionDir: string, entityName: string, fs: IFileSystem): Promise;