import { Entity, CompoundEntityRef } from '@backstage/catalog-model'; /** * @param defaultNamespace - if set to false then namespace is never omitted, * if set to string which matches namespace of entity then omitted * * @public **/ export declare function humanizeEntityRef(entityRef: Entity | CompoundEntityRef, opts?: { defaultKind?: string; defaultNamespace?: string | false; }): string; /** * Convert an entity to its more readable name if available. * * If an entity is either User or Group, this will be its `spec.profile.displayName`. * Otherwise, this is `metadata.title`. * * If neither of those are found or populated, fallback to `defaultName`. * * @param entity - Entity to convert. * @param defaultName - If entity readable name is not available, `defaultName` will be returned. * @returns Readable name, defaults to `defaultName`. * */ export declare function humanizeEntity(entity: Entity, defaultName: string): string;