/* tslint:disable */ /* eslint-disable */ export function manifest_graph_resolve_package_groups(input_json: string): string; export function publication_update(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_fetch_plan(move_lock_toml: string, environment: string): string; export function root_publication_metadata(input_json: string): string; export function legacy_publication_migration(input_json: string): string; export function sui_version(): string; export function sui_move_version(): string; export function lockfile_v4_validate_graph(input_json: 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 lockfile_v4_generate(input_json: string): string; export class WasmCompileResult { private constructor(); free(): void; readonly output: string; readonly success: 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, c: number) => void; readonly compute_manifest_digest_from_move_toml: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; readonly legacy_publication_migration: (a: number, b: number, c: number) => void; readonly lockfile_v4_fetch_plan: (a: number, b: number, c: number, d: number, e: number) => void; readonly lockfile_v4_generate: (a: number, b: number, c: number) => void; readonly lockfile_v4_resolve_package_groups: (a: number, b: number, c: number) => void; readonly lockfile_v4_validate_graph: (a: number, b: number, c: number) => void; readonly manifest_graph_resolve_package_groups: (a: number, b: number, c: number) => void; readonly publication_update: (a: number, b: number, c: number) => void; readonly root_publication_metadata: (a: number, b: number, c: number) => void; readonly sui_move_version: (a: number) => void; readonly wasmcompileresult_output: (a: number, b: number) => void; readonly wasmcompileresult_success: (a: number) => number; readonly sui_version: (a: number) => void; readonly __wbindgen_export_0: (a: number, b: number, c: number) => void; readonly __wbindgen_export_1: (a: number, b: number) => number; readonly __wbindgen_export_2: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_add_to_stack_pointer: (a: number) => number; } 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;