import type { AssetCatalogEntry, AssetContextCost, AssetRisk, AssetStatus, CompatibilityMode, DemandProfile, HostTarget, SelectionRegistry, SourceDefinition } from "../../types.js"; /** * Provides count by for the lifecycle pipeline. */ export declare function countBy(items: T[], getKey: (item: T) => string): Record; /** * Defines generic capability tokens shared by the lifecycle pipeline. */ export declare const GENERIC_CAPABILITY_TOKENS: Set; /** * Builds risk from the provided inputs. */ export declare function buildRisk(hasHooks: boolean, hasExecScripts: boolean, requiresNetwork: boolean): AssetRisk; /** * Provides classify context cost for the lifecycle pipeline. */ export declare function classifyContextCost(lineCount: number): AssetContextCost; /** * Provides compute portfolio fit for the lifecycle pipeline. */ export declare function computePortfolioFit(capabilities: string[], demandProfile: DemandProfile | null): number; /** * Provides compute host fit for the lifecycle pipeline. */ export declare function computeHostFit(hosts: HostTarget[], compatibilityMode: CompatibilityMode): number; /** * Provides find duplicate group for the lifecycle pipeline. */ export declare function findDuplicateGroup(capabilities: string[], selectionRegistry: SelectionRegistry): string | undefined; /** * Builds candidate rank hint from the provided inputs. */ export declare function buildCandidateRankHint(authorityTier: string): string; /** * Provides merge remote catalog entries for the lifecycle pipeline. */ export declare function mergeRemoteCatalogEntries(existingEntries: AssetCatalogEntry[], newEntries: AssetCatalogEntry[], refreshedSourceIds: Set): AssetCatalogEntry[]; /** * Builds asset status from the provided inputs. */ export declare function buildAssetStatus(source: SourceDefinition): AssetStatus; /** * Provides compute trust score for the lifecycle pipeline. */ export declare function computeTrustScore(input: { authorityTier: string; sourceKind: string; sourcePriority: number; publisherVerified: boolean; compatibilityMode: CompatibilityMode; installMethod: string; }): number; /** * Builds trust signals from the provided inputs. */ export declare function buildTrustSignals(input: { authorityTier: string; sourceKind: string; sourcePriority: number; publisherVerified: boolean; compatibilityMode: CompatibilityMode; installMethod: string; }): string[]; /** * Provides enhance trust for entry for the lifecycle pipeline. */ export declare function enhanceTrustForEntry(entry: AssetCatalogEntry): AssetCatalogEntry; /** * Builds catalog id from the provided inputs. */ export declare function buildCatalogId(sourceId: string, assetPath: string): string; /** * Compares asset catalog entries values for stable ordering. */ export declare function compareAssetCatalogEntries(left: AssetCatalogEntry, right: AssetCatalogEntry): number; /** * English stopwords + language-neutral noise tokens. * Filtered from capability extraction via splitIntoKeywords. * Tickets: #400, #406. */ export declare const STOPWORD_TOKENS: Set; /** * Splits a string into lowercase keyword tokens, filtering out stopwords, * single-character tokens (except language identifiers), and numeric-only tokens. * Used by all capability extraction paths. */ export declare function splitIntoKeywords(value: string): string[]; /** * Provides unique strings for the lifecycle pipeline. */ export declare function uniqueStrings(values: string[]): string[]; /** * Provides last path segment for the lifecycle pipeline. */ export declare function lastPathSegment(value: string): string; /** * Derives a human-readable display name from a catalog path. */ export declare function deriveDisplayNameFromPath(relativePath: string): string; /** * Provides humanize slug for the lifecycle pipeline. */ export declare function humanizeSlug(value: string): string; /** * Compares sources by priority values for stable ordering. */ export declare function compareSourcesByPriority(left: SourceDefinition, right: SourceDefinition): number;