/**
 * Run log — append-only NDJSON log of cron job executions.
 *
 * Each job gets its own log file: cron/runs/<jobId>.ndjson
 * One line per execution with timestamp, status, duration, and error.
 */
import type { CronRunStatus } from './types.js';
export interface RunLogEntry {
    jobId: string;
    jobName: string;
    startedAtMs: number;
    endedAtMs: number;
    durationMs: number;
    status: CronRunStatus;
    error?: string;
    /** AgentController output (stdout), truncated to ~4KB. */
    output?: string;
}
/** Truncate output for storage. */
export declare function truncateRunOutput(text: string): string;
/** Append a run log entry for a completed job. */
export declare function appendRunLog(entry: RunLogEntry, runsDir?: string): Promise<void>;
/** Read recent run log entries for a job (newest first, up to limit). */
export declare function readRunLog(jobId: string, limit?: number, runsDir?: string): Promise<RunLogEntry[]>;
//# sourceMappingURL=run-log.d.ts.map