/**
 * Trigger validation — deterministic, fail-loud gate for workflow trigger configs (plan D7/D15).
 *
 * Triggers are the unattended entry points to a workflow (schedule/im-message/webhook/manual). A
 * malformed trigger (an unparseable cron, a non-path webhook, an uncompilable IM match regex) must
 * be rejected at the SINGLE mutation channel (`applyPatch` set_trigger), not silently persisted to
 * fail later inside the gateway trigger layer where it is unreachable to fix. This keeps §1.5
 * fail-loud and satisfies D15 ("schedule 须有效 cron / webhook 鉴权+限流" preconditions).
 *
 * Pure functions, no I/O, no side effects — the gateway still owns actual registration/auth/rate
 * limiting; this only guarantees the stored config is structurally valid and runnable.
 */
import type { TriggerDef } from "./workflow-trigger.js";
/** Returns a list of human-readable errors; empty ⇒ the trigger is valid. */
export declare function validateTrigger(trigger: TriggerDef): string[];
/**
 * Validate a 5-field (min hour dom month dow) or 6-field (sec + the same) cron expression.
 * Each field accepts a star, a star-step (every-N), a single value, a range, a stepped range, and
 * comma-lists of those. Month and day-of-week additionally accept their 3-letter names.
 * Day-of-week allows 0 and 7 for Sunday.
 */
export declare function validateCron(cron: string): string[];
