import type { ResourceDiagnostic } from "../../../core/platform/config/resource-loader.js"; export declare function formatDisplayPath(p: string): string; /** * Get a short path relative to the package root for display. */ export declare function getShortPath(fullPath: string, source: string): string; export declare function getDisplaySourceInfo(source: string, scope: string): { label: string; scopeLabel?: string; color: "accent" | "muted"; }; export declare function getScopeGroup(source: string, scope: string): "user" | "project" | "path"; export declare function isPackageSource(source: string): boolean; export declare function buildScopeGroups(paths: string[], metadata: Map): Array<{ scope: "user" | "project" | "path"; paths: string[]; packages: Map; }>; export declare function formatScopeGroups(groups: Array<{ scope: "user" | "project" | "path"; paths: string[]; packages: Map; }>, options: { formatPath: (p: string) => string; formatPackagePath: (p: string, source: string) => string; }): string; /** * Find metadata for a path, checking parent directories if exact match fails. * Package manager stores metadata for directories, but we display file paths. */ export declare function findMetadata(p: string, metadata: Map): { source: string; scope: string; origin: string; } | undefined; /** * Format a path with its source/scope info from metadata. */ export declare function formatPathWithSource(p: string, metadata: Map): string; /** * Format resource diagnostics with nice collision display using metadata. */ export declare function formatDiagnostics(diagnostics: readonly ResourceDiagnostic[], metadata: Map): string;