import { Action } from '../ActionDocument'; /** * Returns the creation metadata of the last update action (Requested or Accepted). * Requested actions are included so that async flows (202) correctly reflect the * metadata of the user who triggered the action before country config accepts it. * * When an Accepted action carries an originalActionId, its metadata is sourced from * the original Requested action (the human who triggered it), not from the system * or 3rd party that accepted it. * * @returns metadata of the last user who triggered a status-changing action. * @see EventIndex for the description of the returned object. */ export declare function getActionUpdateMetadata(actions: Action[]): Pick<{ id: string & import("zod").$brand<"UUID">; transactionId: string; createdByUserType: "user" | "system"; createdAt: string; createdBy: string; declaration: Record; status: "Requested" | "Accepted" | "Rejected"; createdByRole?: string | undefined; createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined; createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined; annotation?: Record | null | undefined; originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined; }, "createdByUserType" | "createdAt" | "createdBy" | "createdByRole" | "createdAtLocation">; /** * @returns the legal statuses of the event. Event is considered legal if it has been accepted. * @see EventIndex for the description of the returned object. */ export declare function getLegalStatuses(actions: Action[]): { DECLARED: { createdAt: string; createdBy: string; createdByUserType: "user" | "system"; createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined; acceptedAt: string; createdByRole: string | undefined; registrationNumber: string | null | undefined; } | null; REGISTERED: { createdAt: string; createdBy: string; createdByUserType: "user" | "system"; createdAtLocation: (string & import("zod").$brand<"UUID">) | null | undefined; acceptedAt: string; createdByRole: string | undefined; registrationNumber: string | null | undefined; } | null; }; //# sourceMappingURL=utils.d.ts.map