import type { Config } from "../types.js"; export { formatOptimizePipeline, isOptimizeEnabled, resolveOptimizeConfig, } from "./optimize-config.js"; export type { OptimizeResolved } from "./optimize-config.js"; /** * Validate the `[optimize]` settings and the `wasm-opt` pin without compiling * anything, so a misconfigured project fails before the first canister builds. */ export declare function checkOptimizeConfig(config?: Config): void; /** * The pinned Binaryen version, or null when `[optimize]` is absent. Resolving a * version here rather than pinning one would mean a build command writing * mops.toml and asking GitHub for the latest release. */ export declare function requireWasmOptPin(config?: Config): string | null; export type OptimizeWasmOptions = { verbose?: boolean; /** `false` force-disables the pass (e.g. `--no-optimize`), even if `[optimize]` is set. */ optimize?: boolean; }; /** Run wasm-opt on a Wasm file in place when `[optimize]` is enabled. */ export declare function optimizeWasm(wasmPath: string, config?: Config, options?: OptimizeWasmOptions): Promise;