/** * Location information for a component */ export interface ComponentLocation { /** Path to the component file */ componentPath: string; /** Installation path */ installPath: string; /** Whether the component needs to be created (found in legacy location) */ needsCreation?: boolean; } /** * Represents a dependency inconsistency between components in different locations */ export interface DependencyInconsistency { /** Main component name */ main: string; /** Location of the main component */ mainLocation: "ui" | "tambo"; /** Dependency component name */ dependency: string; /** Location of the dependency component */ depLocation: "ui" | "tambo"; } /** * Finds the location of a component in the project * @param componentName - Name of the component to find * @param projectRoot - Project root directory * @param installPath - Pre-determined installation path * @param isExplicitPrefix - Whether the prefix is explicitly provided * @returns Component location information or null if not found */ export declare function findComponentLocation(componentName: string, projectRoot: string, installPath: string, isExplicitPrefix?: boolean): ComponentLocation | null; /** * Detects cross-location dependencies between components * @param verifiedComponents - List of verified components * @param installPath - Base installation path * @param isExplicitPrefix - Whether the prefix is explicitly provided * @returns Array of dependency inconsistencies found */ export declare function detectCrossLocationDependencies(verifiedComponents: { name: string; installPath: string; }[], installPath: string, isExplicitPrefix: boolean): Promise; /** * Handles dependency inconsistencies and migration decisions * @param inconsistencies - Found dependency inconsistencies * @param legacyComponents - Components in legacy location * @param installPath - Base installation path * @param actionType - Type of action being performed ("upgrade" or "update") * @returns Whether migration should be performed */ export declare function handleDependencyInconsistencies(inconsistencies: DependencyInconsistency[], legacyComponents: string[], installPath: string, actionType?: "upgrade" | "update"): Promise; //# sourceMappingURL=component-utils.d.ts.map