/** Strips a domain prefix like "sitecore\\jdoe" → "jdoe". */
export declare function formatAccountName(userName?: string): string;
export type ResolvedUser = {
    displayName: string;
    avatarUrl?: string;
};
export type ResolvedUserSeed = {
    /** A display name already known from the caller's data (e.g. session.user.fullName). */
    fullName?: string | null;
    /** An avatar URL already known from the caller's data (e.g. session.user.avatarUrl). */
    avatarUrl?: string | null;
};
/**
 * Resolves a user name to a friendly display name + avatar URL, seeding from any data the caller
 * already has and falling back to a cached `/parhelia/users` lookup. Used for comment authors,
 * locked-field indicators, and recent visitors — anywhere a user appears who may be offline.
 */
export declare function useResolvedUser(userName: string | undefined | null, seed?: ResolvedUserSeed): ResolvedUser;
