import React from 'react'; import type { ImportEntity, ImportMode } from '../services/types.js'; import type { UploadChoice, UploadNotice } from '../ui/uploadChoice.js'; import type { JobView } from '../web/jobView.js'; /** The order of the radio buttons (§ 8.2). */ export declare const ENTITY_CHOICES: readonly ImportEntity[]; export interface NewImportViewProps { entity: ImportEntity; mode: ImportMode; checkImages: boolean; file: { name: string; size: number; } | null; choice: UploadChoice; maxFileBytes: number | null; templateUrl: string; /** The time zone of the store: the times on the page are in it. */ timeZone?: string | null; /** The page of a job, for the link in the notice of an import at work. */ viewUrlOf(job: JobView): string; /** Set while the file is on its way. */ upload: { percent: number; } | null; error: string | null; onEntity(entity: ImportEntity): void; onMode(mode: ImportMode): void; onCheckImages(value: boolean): void; onFile(file: File | null): void; onSubmit(): void; onAbort(): void; } /** The text of a notice, and of the question that goes with it when it needs a yes. */ export declare function noticeText(notice: UploadNotice, timeZone?: string | null): string; /** What the confirmation dialog says for a notice (D-32). */ export declare function confirmText(notice: UploadNotice, timeZone?: string | null): { heading: string; content: string; }; /** * The page "New import" (§ 8.2): what to import, what to do with a record that * exists, the template, the file, and the notices about the type that was * chosen. It holds no state of its own except the file picker's element. */ export declare function NewImportView(props: NewImportViewProps): React.JSX.Element;