export interface SubagentRunRecord {
    /** Unique runId — same as the one used in the active registry. */
    runId: string;
    /** Agent name / id. */
    name: string;
    /** ISO timestamp the run started. */
    startedAt: string;
    /** ISO timestamp the run ended (success, failure, or cancellation). */
    endedAt: string;
    durationMs: number;
    /** Status: completed when the run produced output, cancelled when aborted, failed when an error escaped. */
    status: 'completed' | 'cancelled' | 'failed';
    /** Truncated prompt — first 500 chars. */
    prompt: string;
    /** Truncated output — first 2000 chars. */
    output: string;
    /** Ordered tool labels the agent called (max 50). */
    toolHistory: string[];
    /** Sub-agent's effective model when known. */
    model?: string;
    /** Resolved agent output directory at the time of the run. */
    outputDir?: string;
    /** Optional error message when status === 'failed'. */
    error?: string;
}
/** Append a run record, trimming the log to MAX_RECORDS entries. */
export declare function appendSubagentRun(projectDir: string, record: SubagentRunRecord): Promise<void>;
/** Return the most recent runs, newest first. */
export declare function listSubagentRuns(projectDir: string, limit?: number): Promise<SubagentRunRecord[]>;
/** Look up a single run by id. */
export declare function getSubagentRun(projectDir: string, runId: string): Promise<SubagentRunRecord | null>;
//# sourceMappingURL=subagentRuns.d.ts.map