/* tslint:disable */ /* eslint-disable */ type HexString = `0x${string}`; export interface JsCallback { getStorage: (key: HexString) => Promise getNextKey: (prefix: HexString, key: HexString) => Promise offchainGetStorage: (key: HexString) => Promise offchainTimestamp: () => Promise offchainRandomSeed: () => Promise offchainSubmitTransaction: (tx: HexString) => Promise } export function calculate_state_root(entries: any, trie_version: any): Promise; export function create_proof(nodes: any, updates: any): Promise; export function decode_proof(trie_root_hash: any, nodes: any): Promise; export function get_runtime_version(code: any): Promise; export function run_task(task: any, js: JsCallback): Promise; export function testing(js: JsCallback, key: any): Promise; export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly calculate_state_root: (a: any, b: any) => any; readonly create_proof: (a: any, b: any) => any; readonly decode_proof: (a: any, b: any) => any; readonly get_runtime_version: (a: any) => any; readonly run_task: (a: any, b: any) => any; readonly testing: (a: any, b: any) => any; readonly wasm_bindgen__closure__destroy__hb454d70b27c07de9: (a: number, b: number) => void; readonly wasm_bindgen__convert__closures_____invoke__h0dafe9b2bb334f52: (a: number, b: number, c: any, d: any) => void; readonly wasm_bindgen__convert__closures_____invoke__h374ab0d2ab71a4a8: (a: number, b: number, c: any) => void; readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_exn_store: (a: number) => void; readonly __externref_table_alloc: () => number; readonly __wbindgen_externrefs: WebAssembly.Table; readonly __wbindgen_free: (a: number, b: number, c: number) => void; 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;