/* tslint:disable */ /* eslint-disable */ /** * テーブルを初期化する(JSから1回呼ぶ) */ export function init_tables(suit_table: Int8Array, honor_table: Int8Array): void; /** * シャンテン数を計算する */ export function shanten(hand: Uint8Array): number; /** * MCシミュレーションを実行する(スコア計算はRust内で完結) */ export function simulate_discards(hand_arr: Uint8Array, remaining_arr: Uint8Array, turns_left: number, num_sims: number, use_riichi: boolean, seat_wind: number, round_wind: number, dora_indicators: Uint8Array, use_red_dora: boolean, initial_riichi: boolean, ura_dora_count: number, ron_bonus: number): any; /** * テーブルが初期化済みかどうか */ export function tables_ready(): boolean; export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly init_tables: (a: number, b: number, c: number, d: number) => void; readonly shanten: (a: number, b: number) => number; readonly simulate_discards: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => any; readonly tables_ready: () => number; readonly __wbindgen_externrefs: WebAssembly.Table; readonly __wbindgen_malloc: (a: number, b: number) => number; 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;