import type { JobRpcResult, JobSummary } from "@aicommander/protocol"; import { type JobStore } from "./job-store.js"; import type { JobLogsRequest, JobMeta } from "./job-types.js"; export declare function normalizeName(value: unknown, jobId: string): string; export declare function clampListLimit(requested: unknown): number; export declare function readJobLogs(store: JobStore, meta: JobMeta, req: JobLogsRequest): JobRpcResult; /** Caps bytes served to callers; it never stops or truncates the writer. */ export declare function checkLogCap(store: JobStore, meta: JobMeta, persist: (meta: JobMeta) => void): void; /** The sole projection from permissive disk records to strict wire summaries. */ export declare function toSummary(store: JobStore, meta: JobMeta, includeCommand: boolean): JobSummary;