import type { QuestObjective, QuestProgressAlgorithm } from "../event.enums"; import type { EventFeatureBaseConfig } from "./feature.base"; declare const featureType: "quest"; export interface FeatureQuestConfig { /** 任务目标 */ objective: QuestObjective; /** 目标值 */ completion_value: number; /** 团队任务配置 */ team?: { /** 组队任务 ID */ feature_id?: number; /** 目标值 */ completion_value: number; /** * 计算任务进度的算法。 * 支持以下取值: * • sum 将所有队员的进度值求和,作为队伍进度值。 * • top_n 以进度值倒序排名第 N 的队员的进度值,作为队伍进度值。如果队伍人数不足 N,则队伍进度值为 0。N 的值来自于配置字段 top_n。 */ progress_algorithm?: QuestProgressAlgorithm; /** progress_algorithm 等于 top_n 时,N 的取值。 */ top_n?: number; }; /** 任务专用配置,取决于任务目标类型 */ config?: { /** 当任务目标为 community_posts 和 community_comments 有效,表示关联的社区话题,可能无值 */ topic_id?: number; /** 参与对局的玩家数量,当任务目标为 player_match_counts 和 player_match_days 有效,不小于 1 */ required_players?: number; /** 单日对局次数,当任务目标为 player_match_days 有效,不小于 1 */ required_matches?: number; /** 活动道具 ID */ event_item_id?: number; }; } export type EventFeatureConfigOfQuest = EventFeatureBaseConfig & { feature_type: typeof featureType; config: FeatureQuestConfig; }; export declare const EventFeatureConfigOfQuestValidator: import("@seayoo-web/validator").ObjectValidator; export {};