// Generated by {{generator}}.
{%- if wasi %}
// @ts-ignore TS7016
import { Wasi, WasiConfig } from "@wasmer/wasi";
{%- endif %}
{%- if libraries %}
import Bindings from "./bindings";
export const bindings: Bindings;
{%- endif %}
{%- if commands %}
export type RunOptions = {
/** Configuration used to initialize the WASI environment. */
wasi: Partial<WasiConfig>,
/**
* A user-specified WebAssembly module to use instead of the one bundled
* with this package.
*/
imports: Record<string, WebAssembly.ModuleImports>,
/**
* A user-specified WebAssembly module to use instead of the one bundled
* with this package.
*/
module: WebAssembly.Module,
};
export type ExitStatus = {
code: number,
wasi: Wasi,
};
export const commands: {
{%- for cmd in commands %}
{{cmd.ident}}: (options?: Partial<RunOptions>) => Promise<ExitStatus>,
{%- endfor%}
};
{%- endif %}