import type { JobStatus } from '../services/job/types.js'; import type { ImportEntity, ImportMode } from '../services/types.js'; /** What an import is of, in the words of the admin. Every string is a literal for the translation tools. */ export declare function entityLabel(entity: ImportEntity): string; /** The same, in the middle of a sentence ("a products import is running"). */ export declare function entityNoun(entity: ImportEntity): string; /** Customer addresses are always added (D-18): they have no choice to show. */ export declare function modeLabel(entity: ImportEntity, mode: ImportMode): string; export type BadgeTone = 'success' | 'destructive' | 'secondary' | 'warning' | 'default'; export declare function statusLabel(status: JobStatus): string; export declare function statusTone(status: JobStatus, errors?: number | null): BadgeTone; /** What the API said when it refused a button, in the admin's language. */ export declare function refusalMessage(failure: { status: number; code: string | null; message: string; }): string; /** What the API said when an upload did not go through, in the admin's language. */ export declare function uploadFailureMessage(failure: { status: number; code: string | null; message: string; details?: Record; }): string;