/* tslint:disable */ /* eslint-disable */ export function lockfile_v4_validate_graph(input_json: string): string; export function lockfile_v4_fetch_plan(move_lock_toml: string, environment: string): string; export function lockfile_v4_resolve_package_groups(input_json: string): string; /** * Compute manifest digest from a Move.toml manifest. This is the preferred * WASM entrypoint because Rust owns the Move.toml dependency semantics. */ export function compute_manifest_digest_from_move_toml(move_toml: string, package_name_override: string | null | undefined, environment: string): string; export function compile(files_json: string, dependencies_json: string, options_json?: string | null): WasmCompileResult; export function legacy_publication_migration(input_json: string): string; export function sui_move_version(): string; export function root_publication_metadata(input_json: string): string; /** * JSON entrypoint for callers that provide pre-normalized dependency data. * `compute_manifest_digest_from_move_toml` keeps Move.toml semantics in Rust. */ export function compute_manifest_digest(deps_json: string): string; export function lockfile_v4_generate(input_json: string): string; export function manifest_graph_resolve_package_groups(input_json: string): string; export function sui_version(): string; export function test_with_options(files_json: string, dependencies_json: string, options_json: string): WasmTestResult; export function publication_update(input_json: string): string; export class WasmCompileResult { private constructor(); free(): void; readonly output: string; readonly success: boolean; } export class WasmTestResult { private constructor(); free(): void; readonly output: string; readonly passed: boolean; } export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly __wbg_wasmcompileresult_free: (a: number, b: number) => void; readonly compile: (a: number, b: number, c: number, d: number, e: number, f: number) => number; readonly compute_manifest_digest: (a: number, b: number) => [number, number]; readonly compute_manifest_digest_from_move_toml: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number]; readonly legacy_publication_migration: (a: number, b: number) => [number, number]; readonly lockfile_v4_fetch_plan: (a: number, b: number, c: number, d: number) => [number, number]; readonly lockfile_v4_generate: (a: number, b: number) => [number, number]; readonly lockfile_v4_resolve_package_groups: (a: number, b: number) => [number, number]; readonly lockfile_v4_validate_graph: (a: number, b: number) => [number, number]; readonly manifest_graph_resolve_package_groups: (a: number, b: number) => [number, number]; readonly publication_update: (a: number, b: number) => [number, number]; readonly root_publication_metadata: (a: number, b: number) => [number, number]; readonly sui_move_version: () => [number, number]; readonly test_with_options: (a: number, b: number, c: number, d: number, e: number, f: number) => number; readonly wasmcompileresult_output: (a: number) => [number, number]; readonly wasmcompileresult_success: (a: number) => number; readonly sui_version: () => [number, number]; readonly __wbg_wasmtestresult_free: (a: number, b: number) => void; readonly wasmtestresult_passed: (a: number) => number; readonly wasmtestresult_output: (a: number) => [number, number]; readonly __wbindgen_free: (a: number, b: number, c: number) => void; readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_export_3: WebAssembly.Table; readonly __wbindgen_start: () => void; } export type SyncInitInput = BufferSource | WebAssembly.Module; /** * Instantiates the given `module`, which can either be bytes or * a precompiled `WebAssembly.Module`. * * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. * * @returns {InitOutput} */ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; /** * If `module_or_path` is {RequestInfo} or {URL}, makes a request and * for everything else, calls `WebAssembly.instantiate` directly. * * @param {{ module_or_path: InitInput | Promise }} module_or_path - Passing `InitInput` directly is deprecated. * * @returns {Promise} */ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise } | InitInput | Promise): Promise;