/** * Copyright (c) 2022, 2026 Joerg Breitbart * @license MIT */ /** * Where to store compiler sdks. * This only applies to auto install mode. * * Values: * - `inwasm` * - store SDks in the inwasm package * - `project` * - store SDKs in the package folder * - `parent:package_name` * - store SDKs in parent package folder * (inspects package.json for the name) * - `path:path_to_folder` * - store SDKs in given folder (relative or absolute) */ export type StoreLocation = 'inwasm' | 'project' | string; export interface IConfig { [key: string]: any; zig?: { /** * Settings to use preinstalled Zig sdk. * * binary Path to preinstalled zig binary. Use '$PATH', * if you want to use 'zig' from PATH variable. */ binary: string; } | { /** * Settings to use auto installer for Zig (default). * * version Zig version to use (default is 'master') * store whether to store Zig sdk on project or inwasm (default is 'project') */ version: string; store: StoreLocation; }; emsdk?: { /** * Settings to use preinstalled emsdk. * * path path to emsdk folder */ path: string; } | { /** * Settings to use auto installer for emsdk (default). * * version emsdk version to use (default is 'latest') * store whether to store emsdk on project or inwasm (default is 'project') */ version: string; store: StoreLocation; }; } export declare const DEFAULT_CONFIG: IConfig; export declare const APP_ROOT: string; export declare const PROJECT_ROOT: string; export declare const JS_IS_ESM: boolean; export declare const PARENT_PACKAGES: { name: string; folder: string; }[]; /** * Get the SDK store root path from a StoreLocation entry; */ export declare function getSdkRoot(store: StoreLocation): string; export declare const CONFIG: IConfig; export declare const WABT_PATH: string; export declare const SHELL: string; export declare const isPosix: boolean; interface IWabtToolPath { 'wasm2c': string; 'wasm-decompile': string; 'wasm-objdump': string; 'wasm-strip': string; 'wat2wasm': string; 'wasm2wat': string; 'wasm-interp': string; 'wasm-opcodecnt': string; 'wasm-validate': string; } export declare const WABT_TOOL: IWabtToolPath; export {};