import { type Run, type RunRow, type CreateRunInput, type RunFilter } from "../types/index.js";
export declare function createRun(input: CreateRunInput & {
    model: string;
}): Run;
export declare function getRun(id: string): Run | null;
export declare function listRuns(filter?: RunFilter): Run[];
export declare function countRuns(filter?: RunFilter): number;
export declare function updateRun(id: string, updates: Partial<RunRow>): Run;
export declare function deleteRun(id: string): boolean;
/**
 * Get runs associated with a specific PR number.
 */
export declare function getRunsByPr(prNumber: number): Run[];
/**
 * Get the latest run for a specific PR number.
 */
export declare function getLatestPrRun(prNumber: number): Run | null;
/**
 * List all runs that have PR metadata, optionally filtered by branch.
 */
export declare function listPrRuns(filter?: {
    branch?: string;
    baseBranch?: string;
    limit?: number;
    offset?: number;
}): Run[];
/**
 * Update PR-specific fields on an existing run.
 */
export declare function updatePrRunMetadata(runId: string, prData: {
    prNumber: number;
    prTitle?: string;
    prBranch?: string;
    prBaseBranch?: string;
    prCommitSha?: string;
    prUrl?: string;
    ghAppInstallationId?: string;
}): Run;
//# sourceMappingURL=runs.d.ts.map