/** Groups possible load errors into a few broad categories which we can give similar guidance to the user about. */ export declare const enum VolumeLoadErrorType { UNKNOWN = "unknown", NOT_FOUND = "not_found", TOO_LARGE = "too_large", LOAD_DATA_FAILED = "load_data_failed", INVALID_METADATA = "invalid_metadata", INVALID_MULTI_SOURCE_ZARR = "invalid_multi_source_zarr" } export declare class VolumeLoadError extends Error { type: VolumeLoadErrorType; constructor(message?: string, options?: { cause?: unknown; type?: VolumeLoadErrorType; }); } /** Curried function to re-throw an error wrapped in a `VolumeLoadError` with the given `message` and `type`. */ export declare function wrapVolumeLoadError(message?: string, type?: VolumeLoadErrorType, ignore?: unknown): (e: T) => T;