/** The codes of the API's own errors (ยง 8.3). A code is never renamed or reused. */ export type ImportApiCode = 'INVALID_REQUEST' | 'NOT_FOUND' | 'WRONG_STATUS' | 'IMPORT_RUNNING' | 'IMPORT_ALREADY_RUNNING' | 'OPEN_JOB_EXISTS' | 'FILE_HAS_ERRORS' | 'FILE_UNAVAILABLE' | 'FILE_TOO_LARGE'; /** The HTTP status of each code. */ export declare const API_STATUS: Readonly>; /** * A request the service refuses. The REST handler turns it into core's JSON * error shape with the extra `code`; `details` says more (the status a job is * in, the entity whose import is running). */ export declare class ImportApiError extends Error { readonly code: ImportApiCode; readonly status: number; readonly details: Record; constructor(code: ImportApiCode, message: string, details?: Record); }