import type { Db } from "@rudderhq/db";
import { type ObservedRunDetail, type RunDiagnosis, type RunDiagnosisMode, type RunExportRow } from "@rudderhq/run-intelligence-core";
import type { HeartbeatRunEvent } from "@rudderhq/shared";
export interface ListObservedRunsInput {
    orgId: string;
    updatedAfter?: Date | null;
    runIdPrefix?: string | null;
    agentId?: string | null;
    status?: string | null;
    runtime?: string | null;
    issueId?: string | null;
    createdBefore?: Date | null;
    limit: number;
}
export declare function listObservedRuns(db: Db, input: ListObservedRunsInput): Promise<RunExportRow[]>;
export declare function getObservedRun(db: Db, runId: string): Promise<RunExportRow | null>;
export declare function getObservedRunEvents(db: Db, runId: string): Promise<HeartbeatRunEvent[]>;
export declare function getObservedRunLog(db: Db, runId: string): Promise<{
    content: string;
}>;
export declare function getObservedRunDetail(db: Db, runId: string): Promise<ObservedRunDetail | null>;
export declare function diagnoseObservedRun(db: Db, runId: string, mode?: RunDiagnosisMode): Promise<{
    detail: ObservedRunDetail;
    diagnosis: RunDiagnosis;
}>;
export declare function buildObservedRunLangfuseScores(db: Db, runId: string): Promise<{
    detail: ObservedRunDetail;
    diagnosis: RunDiagnosis;
    scores: import("@rudderhq/run-intelligence-core").LangfuseScoreDraft[];
}>;
//# sourceMappingURL=run-intelligence.d.ts.map