export interface CommandRun {
    request_id: string;
    project_id: string;
    command: string;
    started_at: string;
    ended_at: string | null;
    exit_code: number | null;
    truncated: number;
    output_preview: string | null;
}
/**
 * Creates a new command run record.
 */
export declare function createCommandRun(requestId: string, projectId: string, command: string): void;
/**
 * Updates a command run with its result.
 */
export declare function updateCommandRun(requestId: string, exitCode: number, outputPreview: string | null, truncated: boolean): void;
/**
 * Returns a command run by its request ID, or null if not found.
 */
export declare function getCommandRun(requestId: string): CommandRun | null;
/**
 * Cleans up old command runs. Removes entries older than 7 days
 * and trims to at most 10,000 rows (keeping the most recent).
 */
export declare function cleanupOldRuns(): number;
//# sourceMappingURL=command-runs.d.ts.map