/** * 数牌用テーブルを取得する(遅延生成) */ export declare function getSuitTable(): Int8Array; /** * 字牌用テーブルを取得する(遅延生成) */ export declare function getHonorTable(): Int8Array; /** * 外部から数牌テーブルを注入する(Webアプリ向け) */ export declare function setSuitTable(table: Int8Array): void; /** * 外部から字牌テーブルを注入する(Webアプリ向け) */ export declare function setHonorTable(table: Int8Array): void; /** * テーブルが初期化済みかどうかを返す */ export declare function isInitialized(): boolean; /** * テーブルをリセットする(テスト用) * @internal */ export declare function _resetTables(): void; /** * 牌パターンからテーブルインデックスを計算する */ export declare function toIndex(suitHand: number[]): number; /** * テーブルから値を参照する * @param table テーブル * @param index パターンインデックス * @param mentsu 面子数 (0-4) * @param withJantou 雀頭ありかどうか */ export declare function lookupTable(table: Int8Array, index: number, mentsu: number, withJantou: boolean): number;