import ApplyDamageDialog from './applydamage.js';
import { DamageTable } from './damage-tables.js';
import DamageChat from './damagechat.js';
import { resolveDamageRollAction } from './resolve-damage-roll-action.js';
import { rollDamage } from './roll-damage.js';
function init() {
    console.log('GURPS | Initializing GURPS Damage module.');
    // @ts-expect-error: Must update to HTML instead of JQuery.
    Hooks.on('renderChatMessage', DamageChat._renderDamageChat);
    // @ts-expect-error: Must update to HTML instead of JQuery.
    Hooks.on('dropCanvasData', DamageChat._dropCanvasData);
    Hooks.on('init', () => {
        GURPS.ApplyDamageDialog = ApplyDamageDialog;
        GURPS.DamageChat = DamageChat;
        GURPS.DamageTables = new DamageTable();
        GURPS.resolveDamageRoll = resolveDamageRollAction;
    });
}
export const Damage = {
    init,
    rollDamage,
};
