import type { Say } from '../say.js'; /** * The messages a job carries (`import_job.error_message`): why it stopped, why it * was interrupted, what it found when it was checked again. They are stored as * English text, and `renderJobMessage` says them in the admin's language when * the job is read, by finding the sentence they were made from. */ export declare const jobMessages: { damagedFile: () => Say; stoppedByError: (detail: string) => Say; interruptedByDatabase: (detail: string) => Say; workerStopped: () => Say; workerCouldNotStart: (firstLine: string) => Say; stoppedAfterFailures: (count: number) => Say; recheckFoundErrors: () => Say; eventsNotDraining: (events: number, minutes: number) => Say; }; /** The templates of the messages of a job, for the translation files. */ export declare const JOB_MESSAGE_TEMPLATES: readonly string[]; /** * A stored message of a job, said with `translate`. A message that is not one of * the sentences above (a text from an older version) is returned as it is. */ export declare function renderJobMessage(text: string | null, translate: (key: string, values: Record) => string): string | null;