import type { ReactNode } from 'react'; /** * A row's words, as the shared label map (`@aglyn/aglyn/app-utils/ * activity-labels`, `ActivityDescription`) composes them. Declared here by * shape, because a shared component imports only shared code. */ export interface ActivityDetailsDescription { action: string; target: string; why: string | null; credits: number | null; result: string | null; /** The stored code — staff only. */ code: string | null; /** The stored path — staff only. */ path: string | null; /** The AI job behind the row — its id is staff only. */ jobId: string | null; } /** One activity or audit row, as the details dialog shows it. */ export interface ActivityDetails { /** The row's words, from the shared label map. */ description: ActivityDetailsDescription; /** Who did it, as the row names them. */ who: string; /** When, already formatted for the reader. */ when: string; /** Where, when the list has a Where column. */ where?: string | null; /** Places to go from the row: the AI job, the item, the site. */ links?: ReadonlyArray<{ label: string; href: string; }>; /** * Facts only Aglyn staff may read — the raw code and path are added from * `description` by the dialog itself, and these after them. Ignored unless * the dialog is told it is a staff view. */ staffFields?: ReadonlyArray<{ label: string; value: ReactNode; }>; } export interface ActivityDetailsDialogProps { details: ActivityDetails | null; /** * A STAFF view. Only then does the dialog show the stored code, the * stored path and `staffFields`: a customer's own activity list opens the * same dialog with the same words and none of the platform's internals. */ staff?: boolean; onClose: () => void; } /** * EVERY ACTIVITY AND AUDIT ROW OPENS THIS (AGL-3660). * * A table row holds as much as one line can: the act, the target, who, * where, when. What did not fit — why, the credits an AI act spent, what * came of it, the job it belonged to — is here, in the same words the row * used, from the same label map. A staff view adds what a customer never * sees: the code the writer stored and the path it filed the row under, * which is what an engineer needs to find the row in the database. */ export declare function ActivityDetailsDialog({ details, staff, onClose }: ActivityDetailsDialogProps): import("react").JSX.Element; export declare namespace ActivityDetailsDialog { var displayName: string; } export default ActivityDetailsDialog;