import { WasmFs } from '@wasmer/wasmfs';
export interface IDependency {
git?: string;
rev?: string;
local?: string;
}
export interface IMovePackage {
name?: string;
version?: string;
addresses?: Map<string, string>;
dependencies?: Map<string, IDependency>;
devDependencies?: Map<string, IDependency>;
build(): void;
} export declare type MoveOptions = {
packagePath: string;
testtest(): booleanvoid;
alias?package(): Map<string, string>void;
initFunction?: string;
};
export declare classtype MovePackageMoveOptions implements IMovePackage= {
name?packagePath: string;
version?test: stringboolean;
addressesalias?: Map<string, string>;
devDependencies?: Map<string, IDependency>;
dependencies?: Map<string, IDependency>;
private wasmfs;
private packagePath;
private packageAlias;
private test;
private initFunction?;
constructor(wasmfs: WasmFs, opts: MoveOptions);
parseToml(tomlContent: string): void;
parseDeps(thisDeps: Map<string, IDependency>, tomlDeps: any): void;
build(): Promise<void>;
getAllDeps(): string[];
collectDependencies(allDeps: string[], modules: Map<string, IDependency>): void;
getAllAddresses(): Map<string, string>;
collectAddresses(allAddresss: Map<string, string>, modules: Map<string, IDependency>): void;
buildPackage(wasmfs: WasmFs, packagePath: string, deps: string[], addresses: Map<string, string>): Promise<void>;
} |