import type { HttpResult, ImportWeb } from './ImportWeb.js'; /** The error answer: core's JSON error shape with the code of § 8.3, and what more is known. */ export declare function failure(web: ImportWeb, error: unknown): HttpResult; export declare const getJob: (web: ImportWeb, uuid: unknown) => Promise; export declare const listOpenJobs: (web: ImportWeb) => Promise; export declare const getIssues: (web: ImportWeb, uuid: unknown, query: Record) => Promise; export declare const startJob: (web: ImportWeb, uuid: unknown) => Promise; export declare const cancelJob: (web: ImportWeb, uuid: unknown) => Promise; export declare const resumeJob: (web: ImportWeb, uuid: unknown) => Promise; export declare const recheckJob: (web: ImportWeb, uuid: unknown) => Promise; export declare const deleteJob: (web: ImportWeb, uuid: unknown) => Promise; /** * The name the browser saves the file with: the name of the upload, without its * extension, and `-with-errors.csv`. Sent twice, as § 8.3 says: a plain ASCII * `filename` for old browsers and the encoded `filename*`. */ export declare function contentDisposition(fileName: string): string; /** * The file with errors (D-15, § 7.3), streamed. It is refused (409 * `FILE_UNAVAILABLE`) before a byte is sent when there is no file to give: the * upload is not complete, the file was deleted (a job that ended clean keeps * none), the file is empty, or the check stopped before the end of it. The * first chunk is read before the answer starts, so a damaged or missing file is * an error and not a broken download. A failure after that destroys the * connection (`send`), so the browser does not keep a cut file that looks whole. */ export declare const downloadFileWithErrors: (web: ImportWeb, uuid: unknown, query: Record) => Promise; /** * The template of an entity (§ 8.3): the header row for this store and two example * rows with reserved keys, which the import skips. The route takes the name the * pages use (`categories`, `products`, `customers`, `customer-addresses`). */ export declare const downloadImportTemplate: (web: ImportWeb, which: unknown) => Promise;