trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
10 lines • 555 B
TypeScript
/**
* Cron expression helpers — intervalMs → nextRunAt (v1).
* @module trellis/plugins/cron/cron-expr
*/
export declare const MIN_INTERVAL_MS = 500;
export declare function assertIntervalMs(intervalMs: unknown): number;
export declare function nextRunAtFromInterval(intervalMs: number, fromMs?: number): string;
export declare function isDue(nextRunAt: string | undefined | null, nowMs: number): boolean;
export declare function leaseIsLive(leaseExpiresAt: string | undefined | null, nowMs: number): boolean;
//# sourceMappingURL=cron-expr.d.ts.map