/** * **Who made and who last changed a row** - the `creator` ยท `updater` of the entity template (things-factory generator). * * A door has the person as `context.state.user`; an approval callback or a shared body carries only that person's id. * Both shapes are taken here. With no person (boot, a device, a scheduled task) nothing is written - an empty person is * never made up. It needs only an id, so it lives in shell and not in auth-base. Lifted on 2026-11-18 from the * warehouse and the yard, which kept byte-identical copies. * * ```ts * repository.save({ ...madeBy(user), ...fields }) // a new row * repository.save({ ...row, ...changedBy(user), ...edit }) // an existing row - the creator stays * ``` */ export type Who = { id?: string; } | string | null | undefined; /** A new row - the one who made it is the last who changed it. */ export declare function madeBy(who: Who): { creator?: { id: string; }; updater?: { id: string; }; }; /** An existing row changes - the creator is left as it was. */ export declare function changedBy(who: Who): { updater?: { id: string; }; };