import type { ModuleSource } from "@antelopejs/interface-core/config"; import type { IFileSystem } from "../types"; import type { BuildModuleEntry } from "./build/build-artifact"; export interface ModulePackageJson { name: string; version: string; description?: string; author?: string | string[]; dependencies?: Record; optionalDependencies?: Record; antelopeJs?: { implements?: string[]; baseUrl?: string; paths?: Record; moduleAliases?: Record; defaultConfig?: Record; }; _moduleAliases?: Record; } export interface PathMapping { key: string; values: string[]; } export interface ModuleAliasEntry { alias: string; replace: string; } export declare class ModuleManifest { private fs; version: string; readonly folder: string; readonly source: ModuleSource; readonly name: string; main: string; baseUrl: string; paths: PathMapping[]; manifest: ModulePackageJson; implements: string[]; srcAliases?: ModuleAliasEntry[]; private constructor(); static create(folder: string, source: ModuleSource, name: string, fs?: IFileSystem): Promise; static fromBuildEntry(entry: BuildModuleEntry, fs?: IFileSystem): ModuleManifest; static readManifest(folder: string, fs?: IFileSystem): Promise; serialize(): BuildModuleEntry; reload(): Promise; }