import { _ } from '../../i18n/index.js';
export const random = {
    type: 'function',
    name: 'random',
    verbose: _('PART_STICKER_RANDOM', 'random'),
    returnType: 'Sticker'
};
export function randomFrom(editor) {
    const stickers = editor.output.resources.get('stickers');
    let stickerEnum = [];
    if (stickers) {
        stickerEnum = stickers.categoryEnum;
    }
    return {
        type: 'function',
        name: 'randomFrom',
        verbose: _('PART_STICKER_RANDOM_FROM', 'random'),
        returnType: 'Sticker',
        parameters: [{
                type: 'parameter',
                name: 'set',
                verbose: '',
                returnType: 'Enum',
                enum: stickerEnum,
            }]
    };
}
//# sourceMappingURL=common.js.map