import type { DocumentVersion } from '@pantheon-systems/css-client'; import type { CurrentUser } from '../../pds/components/P1EditorHeader.js'; export interface VersionAuthorNameOptions { currentUser?: CurrentUser; resolveAuthorName?: (id: string, type: 'user' | 'agent') => string | undefined; } /** The byline for a version: who saved it, or which agent did so and for whom. */ export declare function versionAuthorName(version: DocumentVersion, { currentUser, resolveAuthorName }: VersionAuthorNameOptions): string; /** The display name for whoever acted; "a team member" when nobody is recorded. */ export declare function actorName(id: string | null, type: string | null, { currentUser, resolveAuthorName }: VersionAuthorNameOptions): string; /** * Author-name options for any view that shows version bylines. Names the caller can't * resolve are looked up in the site's roster; someone no longer on the site still reads "User". */ export declare function useVersionAuthorNameOptions({ currentUser, resolveAuthorName }: VersionAuthorNameOptions): VersionAuthorNameOptions;