declare enum LoaderErrorType { EmptyModule = "EMPTY_MODULE", VirtualPiece = "VIRTUAL_PIECE", UnloadedPiece = "UNLOADED_PIECE", IncorrectType = "INCORRECT_TYPE", UnknownStore = "UNKNOWN_STORE" } /** * Describes a loader error with a type for easy identification. */ declare class LoaderError extends Error { /** * The type of the error that was thrown. */ readonly type: LoaderErrorType; constructor(type: LoaderErrorType, message: string); get name(): string; } export { LoaderError, LoaderErrorType };