import { AppModule } from '../../app-modules/app-module.js';
export class StampModule extends AppModule {
    static get id() {
        return 'stamp';
    }
    constructor(output) {
        super(output);
        const stickers = output.resources.get('stickers');
        function random(id) {
            if (id === 'all') {
                return stickers.getRandom();
            }
            return stickers.getRandomFrom(id);
        }
        this.addMethod('random', random);
    }
}
export default StampModule;
//# sourceMappingURL=stamp.js.map