import type { ImportJob, StoredIssue } from '../services/job/types.js'; /** * A job as the API shows it. The uuid is its name in every URL; the numeric id, * the fencing token, the worker and the hash of the file stay inside. */ export declare function jobView(job: ImportJob, names: Map, /** Says the message of the job in the admin's language (English without it). */ say?: (message: string | null) => string | null): { uuid: string; entity: "product" | "category" | "customer" | "customerAddress"; mode: import("../services/types.js").ImportMode; status: import("../services/job/types.js").JobStatus; stage: import("../services/job/types.js").JobStage | null; cancelRequested: boolean; fileName: string; fileSize: number; fileKept: boolean; options: { checkImages?: boolean; }; counts: import("../services/job/types.js").JobCounts; errorMessage: string | null; createdAt: string | null; statusChangedAt: string | null; validatedAt: string | null; startedAt: string | null; finishedAt: string | null; expiresAt: string | null; waitingSince: string | null; createdBy: { id: number; name: string | null; } | null; }; /** A problem as the API shows it: the row, the key, the column, the code, the message and the cell. */ export declare function issueView(issue: StoredIssue): { row: number | null; key: string | null; column: string | null; code: string; severity: "error" | "warning"; params: Record; message: string; value: string | null; }; /** What `GET /import-jobs/:id` answers (the data, as the page reads it: dates are ISO text). */ export type JobView = ReturnType; /** One problem of `GET /import-jobs/:id/issues`. */ export type IssueView = ReturnType;