import { CollectionSchemaBase } from './dsl.js'; export interface TaskSchema extends CollectionSchemaBase { type: 'task'; /** Display label (Chinese) for the task. */ label: string; /** Cron expression — the timer schedule. */ cron: string; } /** * Defines a scheduled task. `name` must end with 'Task' (PascalCase, * e.g. 'AutoRefundTask'); the export symbol equals the name. File name is the * name minus the Task suffix, kebab-cased, plus '.task.ts' * (AutoRefundTask → task_schema/auto-refund.task.ts). */ export declare function defineTask(options: { name: string; label: string; cron: string; description?: string; }): TaskSchema;