openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
21 lines (20 loc) • 712 B
TypeScript
import { n as TimeFormatPreference } from "./date-time-C_aF3jiN.js";
//#region src/agents/current-time.d.ts
type CronStyleNow = {
userTimezone: string;
formattedTime: string;
timeLine: string;
};
type TimeConfigLike = {
agents?: {
defaults?: {
userTimezone?: string;
timeFormat?: TimeFormatPreference;
};
};
};
/** Resolve localized and UTC current-time text for agent prompts. */
declare function resolveCronStyleNow(cfg: TimeConfigLike, nowMs: number): CronStyleNow;
declare function appendCronStyleCurrentTimeLine(text: string, cfg: TimeConfigLike, nowMs: number): string;
//#endregion
export { appendCronStyleCurrentTimeLine as n, resolveCronStyleNow as r, CronStyleNow as t };