import { GurpsToken } from './gurps-token.js';
import { GurpsTokenHUD } from './token-hud-12.js';
import { registerTokenHUD } from './token-hud.js';
import { registerTokenRuler } from './token-ruler.js';
export * from './gurps-token.js';
export * from './quick-roll-settings.js';
function init() {
    console.log('GURPS | Initializing GURPS Token module.');
    Hooks.once('init', () => {
        CONFIG.Token.objectClass = GurpsToken;
        if (!game.release)
            return;
        if (game.release?.generation >= 13) {
            // COMPATIBILITY: v12
            registerTokenHUD();
            registerTokenRuler();
        }
        else {
            CONFIG.Token.hudClass = GurpsTokenHUD;
        }
    });
}
export const Token = {
    init,
};
