import React from 'react'; import type { Screen, ScreenAction } from '../ui/jobScreen.js'; import type { JobView } from '../web/jobView.js'; export interface JobScreenUrls { newImport: string; fileWithErrors: string; } export interface JobScreenViewProps { job: JobView; screen: Screen; /** The button that was pressed and has not been answered yet. */ pending: ScreenAction | null; /** What the server said to the last button that was refused. */ refusal: string | null; /** The last ask failed: what is shown may be a few seconds old. */ stale: boolean; urls: JobScreenUrls; /** The time zone of the store: the times on the page are in it. */ timeZone?: string | null; onAction(action: ScreenAction): void; /** The table of problems, when the screen has one. */ problems?: React.ReactNode; } /** * The page "New import" with the type and the mode of this job chosen, so that * the corrected file is not checked as a file of another type. */ export declare function uploadNewUrl(base: string, job: Pick): string; /** * The content of the page of one job (ยง 8.2), for any status: what the screen * says, the bar, the notes, the buttons and, when the screen has one, the table * of problems. It holds no state: `ImportJobView` owns the polling and the actions. */ export declare function JobScreenView(props: JobScreenViewProps): React.JSX.Element;